From 0ca45be89d8cacfe8025339205c32b374fd41b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Fri, 6 Jan 2017 21:02:52 +0800 Subject: [PATCH] update MU auth_aes128_* protocol --- shadowsocks/obfsplugin/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/obfsplugin/auth.py b/shadowsocks/obfsplugin/auth.py index 0244680..8edd6a0 100644 --- a/shadowsocks/obfsplugin/auth.py +++ b/shadowsocks/obfsplugin/auth.py @@ -1282,7 +1282,7 @@ class auth_aes128_sha1(auth_base): uid = self.recv_buf[7:11] if uid in self.server_info.users: - self.user_key = self.server_info.users[uid] + self.user_key = self.hashfunc(self.server_info.users[uid]).digest() self.server_info.update_user_func(uid) else: if not self.server_info.users: @@ -1384,7 +1384,7 @@ class auth_aes128_sha1(auth_base): def server_udp_post_decrypt(self, buf): uid = buf[-8:-4] if uid in self.server_info.users: - self.user_key = self.server_info.users[uid] + self.user_key = self.hashfunc(self.server_info.users[uid]).digest() else: uid = None if not self.server_info.users: