fix auth_aes128_* client side

This commit is contained in:
破娃酱 2017-01-18 17:00:09 +08:00
parent ccacef1556
commit 9c794624e0

View file

@ -1224,7 +1224,7 @@ class auth_aes128_sha1(auth_base):
uid = os.urandom(4)
if b':' in to_bytes(self.server_info.protocol_param):
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()
uid = struct.pack('<I', int(items[0]))
except: