From 75643635d4e68a0d5127b1aa3aa15fc343b094ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Sun, 15 Jan 2017 10:05:29 +0800 Subject: [PATCH] change default setting --- config.json | 2 +- mujson_mgr.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.json b/config.json index 199b111..92faf5a 100644 --- a/config.json +++ b/config.json @@ -7,7 +7,7 @@ "password": "m", "timeout": 120, "udp_timeout": 60, - "method": "aes-256-cfb", + "method": "aes-128-ctr", "protocol": "auth_aes128_md5", "protocol_param": "", "obfs": "tls1.2_ticket_auth_compatible", diff --git a/mujson_mgr.py b/mujson_mgr.py index 23338ef..46ab3e1 100644 --- a/mujson_mgr.py +++ b/mujson_mgr.py @@ -104,8 +104,8 @@ class MuMgr(object): return ''.join([random.choice('''ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~-_=+(){}[]^&%$@''') for i in range(8)]) def add(self, user): - up = {'enable': 1, 'u': 0, 'd': 0, 'method': "aes-128-cfb", - 'protocol': "auth_sha1_v4", + up = {'enable': 1, 'u': 0, 'd': 0, 'method': "aes-128-ctr", + 'protocol': "auth_aes128_md5", 'obfs': "tls1.2_ticket_auth_compatible", 'transfer_enable': 1125899906842624} up['passwd'] = self.rand_pass()