From 73af0eeea06deee60a4390fa9fbc9a978036ec7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Tue, 25 Apr 2017 17:00:08 +0800 Subject: [PATCH] fix auth_chain_a --- shadowsocks/obfsplugin/auth_chain.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/shadowsocks/obfsplugin/auth_chain.py b/shadowsocks/obfsplugin/auth_chain.py index c23a883..7cf1d73 100644 --- a/shadowsocks/obfsplugin/auth_chain.py +++ b/shadowsocks/obfsplugin/auth_chain.py @@ -313,6 +313,7 @@ class auth_chain_a(auth_base): return buf def pack_client_data(self, buf): + buf = self.encryptor.encrypt(buf) data = self.rnd_data(len(buf), buf, self.last_client_hash, self.random_client) data_len = len(data) + 8 mac_key = self.user_key + struct.pack('