Skip to content
Snippets Groups Projects
Commit 927da9f8 authored by Éloïs's avatar Éloïs
Browse files

add command --rm-proxies

parent 7dd71740
No related branches found
No related tags found
1 merge request!1178Add WS2PTOR features
...@@ -53,6 +53,7 @@ export const ExecuteCommand = () => { ...@@ -53,6 +53,7 @@ export const ExecuteCommand = () => {
.option('--proxy-tor <host:port>', 'Use Tor Socks Proxy') .option('--proxy-tor <host:port>', 'Use Tor Socks Proxy')
.option('--tor-always', 'Pass all outgoing requests through the tor network') .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('--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('--timeout <milliseconds>', 'Timeout to use when contacting peers', parseInt)
.option('--httplogs', 'Enable HTTP logs') .option('--httplogs', 'Enable HTTP logs')
......
...@@ -452,7 +452,8 @@ function commandLineConf(program:any, conf:ConfDTO = ConfDTO.mock()) { ...@@ -452,7 +452,8 @@ function commandLineConf(program:any, conf:ConfDTO = ConfDTO.mock()) {
proxySocks: program.proxySocks, proxySocks: program.proxySocks,
proxyTor: program.proxyTor, proxyTor: program.proxyTor,
torAlways: program.torAlways, torAlways: program.torAlways,
torMixed: program.torMixed torMixed: program.torMixed,
rmProxies: program.rmProxies
}, },
logs: { logs: {
http: program.httplogs, http: program.httplogs,
...@@ -467,7 +468,7 @@ function commandLineConf(program:any, conf:ConfDTO = ConfDTO.mock()) { ...@@ -467,7 +468,7 @@ function commandLineConf(program:any, conf:ConfDTO = ConfDTO.mock()) {
}; };
// Declare proxyConf // 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() conf.proxyConf = Proxy.defaultConf()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment