fix undefined variable bug (#171)
This commit is contained in:
parent
5d479087a8
commit
bf8bb8afe2
1 changed files with 1 additions and 1 deletions
2
shadowsocks/obfsplugin/auth.py
Normal file → Executable file
2
shadowsocks/obfsplugin/auth.py
Normal file → Executable file
|
@ -1434,7 +1434,7 @@ class auth_aes128_sha1(auth_base):
|
||||||
self.user_id = os.urandom(4)
|
self.user_id = os.urandom(4)
|
||||||
self.user_key = self.server_info.key
|
self.user_key = self.server_info.key
|
||||||
buf += self.user_id
|
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):
|
def client_udp_post_decrypt(self, buf):
|
||||||
user_key = self.server_info.key
|
user_key = self.server_info.key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue