This commit is contained in:
SomberNight 2017-12-21 23:31:59 +01:00 committed by ThomasV
parent 0f54051ecb
commit dfaf4817c9
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,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):