From 125c3e88fdf34052eb1a9e330f270a6c7caba5df Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Thu, 12 Nov 2015 18:06:12 +0800 Subject: [PATCH] random size from 0 --- shadowsocks/obfsplugin/http_simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/obfsplugin/http_simple.py b/shadowsocks/obfsplugin/http_simple.py index 926ba85..9dce440 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -92,7 +92,7 @@ class http_simple(plain.plain): return buf head_size = self.get_head_size(buf, 30) if len(buf) - head_size > 64: - headlen = head_size + random.randint(1, 64) + headlen = head_size + random.randint(0, 64) else: headlen = len(buf) headdata = buf[:headlen]