From bbb85faa54a6f588f8229732a3acd38b7be5f56e Mon Sep 17 00:00:00 2001 From: Akkariiin Date: Fri, 11 Aug 2017 10:41:44 +0800 Subject: [PATCH] fix --- shadowsocks/obfsplugin/auth_chain.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shadowsocks/obfsplugin/auth_chain.py b/shadowsocks/obfsplugin/auth_chain.py index b11d545..f796fd1 100644 --- a/shadowsocks/obfsplugin/auth_chain.py +++ b/shadowsocks/obfsplugin/auth_chain.py @@ -724,9 +724,7 @@ class auth_chain_b(auth_chain_a): # final_pos 总是分布在pos~(data_size_list2.len-1)之间 if final_pos < pos + len(self.data_size_list2) - 1: return 0 - # 有1/len(self.data_size_list2)的概率不满足上一个if ? - # 理论上不会运行到此处,因此可以插入运行断言 ? - # assert False + # 有1/len(self.data_size_list2)的概率不满足上一个if if buf_size > 1300: return random.next() % 31