From 2eaca2faeaa2fb29d079c06507813d0d8c03d514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Mon, 17 Oct 2016 16:07:25 +0800 Subject: [PATCH] fix typo --- shadowsocks/obfsplugin/obfs_tls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/obfsplugin/obfs_tls.py b/shadowsocks/obfsplugin/obfs_tls.py index a8526bf..691e6fa 100644 --- a/shadowsocks/obfsplugin/obfs_tls.py +++ b/shadowsocks/obfsplugin/obfs_tls.py @@ -149,7 +149,7 @@ class tls_ticket_auth(plain.plain): return buf if self.handshake_status == 8: ret = b'' - while len(buf) > 4096: + while len(buf) > 4196: size = struct.unpack('>H', os.urandom(2))[0] % 4096 + 100 ret += b"\x17" + self.tls_version + struct.pack('>H', size) + buf[:size] buf = buf[size:]