From 727d218ff2d17b711698ec5585a8b2db4c9413ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Thu, 22 Jun 2017 19:29:34 +0800 Subject: [PATCH] fix var name --- shadowsocks/tcprelay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index 7aae7e4..ca431e6 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -1294,9 +1294,9 @@ class TCPRelay(object): self._speed_tester_d[uid] = SpeedTester(speed) def del_user(self, uid): - if user in self.server_users: + if uid in self.server_users: del self.server_users[uid] - if user in self.server_users_cfg: + if uid in self.server_users_cfg: del self.server_users_cfg[uid] def add_transfer_u(self, user, transfer):