Browse Source

more small packet

dev
破娃酱 7 years ago
parent
commit
604cbf8a78
  1. 8
      shadowsocks/obfsplugin/auth_chain.py

8
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):

Loading…
Cancel
Save