Browse Source

fix default protocol setting

dev
BreakWa11 9 years ago
parent
commit
b606e19c0b
  1. 4
      shadowsocks/server.py

4
shadowsocks/server.py

@ -68,8 +68,8 @@ def main():
port_password = config['port_password'] port_password = config['port_password']
del config['port_password'] del config['port_password']
for port, password_obfs in port_password.items(): for port, password_obfs in port_password.items():
protocol = 'origin' protocol = config.get("protocol", 'origin')
obfs_param = '' obfs_param = config.get("obfs_param", '')
if type(password_obfs) == list: if type(password_obfs) == list:
password = password_obfs[0] password = password_obfs[0]
obfs = password_obfs[1] obfs = password_obfs[1]

Loading…
Cancel
Save