From 3d56b040cffbd98899c95963379d232476d05530 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Tue, 21 Jun 2016 23:26:00 +0800 Subject: [PATCH] accept older connection id --- shadowsocks/obfsplugin/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadowsocks/obfsplugin/auth.py b/shadowsocks/obfsplugin/auth.py index d64c98b..0f2ee35 100644 --- a/shadowsocks/obfsplugin/auth.py +++ b/shadowsocks/obfsplugin/auth.py @@ -103,8 +103,9 @@ class client_queue(object): def re_enable(self, connection_id): self.enable = True self.alloc = {} - self.front = connection_id + self.front = connection_id - 16 self.back = connection_id + self.alloc[connection_id] = 1 def insert(self, connection_id): self.update()