proxy: allow '-p none'
This commit is contained in:
parent
fd13d19cb8
commit
cfce1420c5
|
@ -48,6 +48,7 @@ def old_to_new(d):
|
||||||
replace_keys(d, 'raw_scriptPubKey', 'raw_output_script')
|
replace_keys(d, 'raw_scriptPubKey', 'raw_output_script')
|
||||||
|
|
||||||
def parse_proxy_options(s):
|
def parse_proxy_options(s):
|
||||||
|
if s.lower() == 'none': return None
|
||||||
proxy = { "mode":"socks5", "host":"localhost" }
|
proxy = { "mode":"socks5", "host":"localhost" }
|
||||||
args = s.split(':')
|
args = s.split(':')
|
||||||
n = 0
|
n = 0
|
||||||
|
|
Loading…
Reference in New Issue