From 3930cfc72653cde212f9b95efd2fcd62bb4749c2 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Tue, 17 Nov 2015 17:49:04 +0800 Subject: [PATCH] fix a bug --- shadowsocks/obfsplugin/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/obfsplugin/verify.py b/shadowsocks/obfsplugin/verify.py index 770ce29..1c939ae 100644 --- a/shadowsocks/obfsplugin/verify.py +++ b/shadowsocks/obfsplugin/verify.py @@ -295,7 +295,7 @@ class verify_sha1(verify_base): ret = b'' if not self.has_sent_header: datalen = self.get_head_size(buf, 30) - ret += self.pack_auth_data(buf[datalen:]) + ret += self.pack_auth_data(buf[:datalen]) buf = buf[datalen:] self.has_sent_header = True while len(buf) > self.unit_len: