From 604cbf8a78c8ebe7a0c990bced9cceb1614d5952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Wed, 26 Jul 2017 14:47:30 +0800 Subject: [PATCH] more small packet --- shadowsocks/obfsplugin/auth_chain.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shadowsocks/obfsplugin/auth_chain.py b/shadowsocks/obfsplugin/auth_chain.py index 3949008..d748ef0 100644 --- a/shadowsocks/obfsplugin/auth_chain.py +++ b/shadowsocks/obfsplugin/auth_chain.py @@ -648,13 +648,13 @@ class auth_chain_b(auth_chain_a): self.data_size_list2 = [] random = xorshift128plus() random.init_from_bin(key) - list_len = random.next() % 16 + 4 + list_len = random.next() % 8 + 4 for i in range(0, list_len): - self.data_size_list.append((int)(random.next() % 1440)) + self.data_size_list.append((int)(random.next() % 2340 % 2040 % 1440)) self.data_size_list.sort() - list_len = random.next() % 32 + 32 + list_len = random.next() % 16 + 16 for i in range(0, list_len): - self.data_size_list2.append((int)(random.next() % 1440)) + self.data_size_list2.append((int)(random.next() % 2340 % 2040 % 1440)) self.data_size_list2.sort() def set_server_info(self, server_info):