From 349821221d6e5f262d72d8c6fb55496a76b6cb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Thu, 29 Dec 2016 14:15:18 +0800 Subject: [PATCH] force pack some data in url --- shadowsocks/obfsplugin/http_simple.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shadowsocks/obfsplugin/http_simple.py b/shadowsocks/obfsplugin/http_simple.py index 596b649..6549f77 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -198,6 +198,8 @@ class http_simple(plain.plain): hosts = self.server_info.obfs_param.split(',') if host not in hosts: return self.not_match_return(buf) + if len(ret_buf) < 4: + return self.not_match_return(buf) if len(datas) > 1: ret_buf += datas[1] if len(ret_buf) >= 7: