From e060fd5b4d9e7f0ab4921b3dc9212de83816cff4 Mon Sep 17 00:00:00 2001 From: breakwa11 Date: Sat, 26 Sep 2015 00:04:08 +0800 Subject: [PATCH] tiny bug --- 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 7b3cf28..0e3c211 100644 --- a/shadowsocks/obfsplugin/http_simple.py +++ b/shadowsocks/obfsplugin/http_simple.py @@ -238,7 +238,7 @@ class random_head(object): if self.has_sent_header: return buf self.has_sent_header = True - return os.urandom(common.ord(os.urandom(1)[0]) % 96) + return os.urandom(common.ord(os.urandom(1)[0]) % 96 + 1) def server_decode(self, buf): if self.has_recv_header: