Commit 927da9f8 authored by Éloïs's avatar Éloïs
Browse files

add command --rm-proxies

parent 7dd71740
......@@ -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')
......
......@@ -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()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment