mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix #3578
This commit is contained in:
parent
f3a6491df4
commit
fc574ee514
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ proxy_modes = ['socks4', 'socks5', 'http']
|
||||||
def serialize_proxy(p):
|
def serialize_proxy(p):
|
||||||
if not isinstance(p, dict):
|
if not isinstance(p, dict):
|
||||||
return None
|
return None
|
||||||
return ':'.join([p.get('mode'),p.get('host'), p.get('port'), p.get('user'), p.get('password')])
|
return ':'.join([p.get('mode'), p.get('host'), p.get('port'),
|
||||||
|
p.get('user', ''), p.get('password', '')])
|
||||||
|
|
||||||
|
|
||||||
def deserialize_proxy(s):
|
def deserialize_proxy(s):
|
||||||
|
|
Loading…
Add table
Reference in a new issue