Browse Source

change default setting

dev
破娃酱 8 years ago
parent
commit
75643635d4
  1. 2
      config.json
  2. 4
      mujson_mgr.py

2
config.json

@ -7,7 +7,7 @@
"password": "m", "password": "m",
"timeout": 120, "timeout": 120,
"udp_timeout": 60, "udp_timeout": 60,
"method": "aes-256-cfb", "method": "aes-128-ctr",
"protocol": "auth_aes128_md5", "protocol": "auth_aes128_md5",
"protocol_param": "", "protocol_param": "",
"obfs": "tls1.2_ticket_auth_compatible", "obfs": "tls1.2_ticket_auth_compatible",

4
mujson_mgr.py

@ -104,8 +104,8 @@ class MuMgr(object):
return ''.join([random.choice('''ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~-_=+(){}[]^&%$@''') for i in range(8)]) return ''.join([random.choice('''ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~-_=+(){}[]^&%$@''') for i in range(8)])
def add(self, user): def add(self, user):
up = {'enable': 1, 'u': 0, 'd': 0, 'method': "aes-128-cfb", up = {'enable': 1, 'u': 0, 'd': 0, 'method': "aes-128-ctr",
'protocol': "auth_sha1_v4", 'protocol': "auth_aes128_md5",
'obfs': "tls1.2_ticket_auth_compatible", 'obfs': "tls1.2_ticket_auth_compatible",
'transfer_enable': 1125899906842624} 'transfer_enable': 1125899906842624}
up['passwd'] = self.rand_pass() up['passwd'] = self.rand_pass()

Loading…
Cancel
Save