From 9a5c7da37ac887d4d4a544f3a98bef56cccb71fa Mon Sep 17 00:00:00 2001 From: Akkariiin Date: Thu, 28 Sep 2017 11:57:06 +0800 Subject: [PATCH] fix anth_chain_f issue --- 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 1134221..66fce90 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] = chr(ord(new_key[i]) ^ self.key_change_datetime_key_bytes[i]) + new_key[i] = to_str(to_bytes(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)