diff --git a/app/cli.ts b/app/cli.ts index bab8e0d657162c2a48bbc70f900048619c9c2624..187022269c60549029e801a114caa95b9ebae33c 100644 --- a/app/cli.ts +++ b/app/cli.ts @@ -53,6 +53,7 @@ export const ExecuteCommand = () => { .option('--proxy-tor <host:port>', 'Use Tor Socks Proxy') .option('--tor-always', 'Pass all outgoing requests through the tor network') .option('--tor-mixed', 'Pass only ".onion" outgoing requests through the tor network. It\'s the default behavior') + .option('--rm-proxies', 'Remove all proxies') .option('--timeout <milliseconds>', 'Timeout to use when contacting peers', parseInt) .option('--httplogs', 'Enable HTTP logs') diff --git a/index.ts b/index.ts index b1d842581d74416cbb4d6fa7b68fb3ad1cf506cb..60adec3940b701616fa99b0d3539d87e82257685 100644 --- a/index.ts +++ b/index.ts @@ -452,7 +452,8 @@ function commandLineConf(program:any, conf:ConfDTO = ConfDTO.mock()) { proxySocks: program.proxySocks, proxyTor: program.proxyTor, torAlways: program.torAlways, - torMixed: program.torMixed + torMixed: program.torMixed, + rmProxies: program.rmProxies }, logs: { http: program.httplogs, @@ -467,7 +468,7 @@ function commandLineConf(program:any, conf:ConfDTO = ConfDTO.mock()) { }; // Declare proxyConf - if (cli.proxies.proxySocks || cli.proxies.proxyTor || cli.proxies.torAlways || cli.proxies.torMixed) { + if (cli.proxies.proxySocks || cli.proxies.proxyTor || cli.proxies.torAlways || cli.proxies.torMixed || cli.proxies.rmProxies) { conf.proxyConf = Proxy.defaultConf() }