commit fc574ee514c6798ed0950003f1736407e52c2074
parent f3a6491df4fbfa5135fa0d806b88f61df940c3ee
Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 21 Dec 2017 23:31:59 +0100
fix #3578
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/network.py b/lib/network.py
@@ -105,7 +105,8 @@ proxy_modes = ['socks4', 'socks5', 'http']
def serialize_proxy(p):
if not isinstance(p, dict):
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):