Browse Source

fix anth_chain_f issue

akkariiin/dev
Akkariiin 7 years ago
parent
commit
9a5c7da37a
  1. 2
      shadowsocks/obfsplugin/auth_chain.py

2
shadowsocks/obfsplugin/auth_chain.py

@ -897,7 +897,7 @@ class auth_chain_f(auth_chain_e):
# key xor with key_change_datetime_key # key xor with key_change_datetime_key
new_key = list(key) new_key = list(key)
for i in range(0, 8): 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) random.init_from_bin(new_key)
# 补全数组长为12~24-1 # 补全数组长为12~24-1
list_len = random.next() % (8 + 16) + (4 + 8) list_len = random.next() % (8 + 16) + (4 + 8)

Loading…
Cancel
Save