Browse Source

fix auth_aes128_* client side

dev
破娃酱 8 years ago
parent
commit
9c794624e0
  1. 2
      shadowsocks/obfsplugin/auth.py

2
shadowsocks/obfsplugin/auth.py

@ -1224,7 +1224,7 @@ class auth_aes128_sha1(auth_base):
uid = os.urandom(4) uid = os.urandom(4)
if b':' in to_bytes(self.server_info.protocol_param): if b':' in to_bytes(self.server_info.protocol_param):
try: try:
items = to_bytes(self.server_info.protocol_param).split(':') items = to_bytes(self.server_info.protocol_param).split(b':')
self.user_key = self.hashfunc(items[1]).digest() self.user_key = self.hashfunc(items[1]).digest()
uid = struct.pack('<I', int(items[0])) uid = struct.pack('<I', int(items[0]))
except: except:

Loading…
Cancel
Save