From 12cba3092e4974fe4829a3b2f38804c19dc66e5b Mon Sep 17 00:00:00 2001 From: Akkariiin Date: Sun, 24 Sep 2017 15:46:24 +0800 Subject: [PATCH] fix auth_chain_f --- shadowsocks/obfsplugin/auth_chain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/obfsplugin/auth_chain.py b/shadowsocks/obfsplugin/auth_chain.py index 05ca045..1134221 100644 --- a/shadowsocks/obfsplugin/auth_chain.py +++ b/shadowsocks/obfsplugin/auth_chain.py @@ -897,7 +897,7 @@ class auth_chain_f(auth_chain_e): # key xor with key_change_datetime_key new_key = list(key) for i in range(0, 8): - new_key[i] = ord(new_key[i]) ^ self.key_change_datetime_key_bytes[i] + new_key[i] = chr(ord(new_key[i]) ^ self.key_change_datetime_key_bytes[i]) random.init_from_bin(new_key) # 补全数组长为12~24-1 list_len = random.next() % (8 + 16) + (4 + 8)