fix default protocol setting
This commit is contained in:
parent
bc419c4dc2
commit
b606e19c0b
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ def main():
|
|||
port_password = config['port_password']
|
||||
del config['port_password']
|
||||
for port, password_obfs in port_password.items():
|
||||
protocol = 'origin'
|
||||
obfs_param = ''
|
||||
protocol = config.get("protocol", 'origin')
|
||||
obfs_param = config.get("obfs_param", '')
|
||||
if type(password_obfs) == list:
|
||||
password = password_obfs[0]
|
||||
obfs = password_obfs[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue