From bf8bb8afe27dcde8b124c3b849d77474229d5d71 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 5 Feb 2017 23:44:43 +1100 Subject: [PATCH] fix undefined variable bug (#171) --- shadowsocks/obfsplugin/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 shadowsocks/obfsplugin/auth.py diff --git a/shadowsocks/obfsplugin/auth.py b/shadowsocks/obfsplugin/auth.py old mode 100644 new mode 100755 index b1adc37..b787b33 --- a/shadowsocks/obfsplugin/auth.py +++ b/shadowsocks/obfsplugin/auth.py @@ -1434,7 +1434,7 @@ class auth_aes128_sha1(auth_base): self.user_id = os.urandom(4) self.user_key = self.server_info.key buf += self.user_id - return buf + hmac.new(user_key, buf, self.hashfunc).digest()[:4] + return buf + hmac.new(self.user_key, buf, self.hashfunc).digest()[:4] def client_udp_post_decrypt(self, buf): user_key = self.server_info.key