From e56c5e4b90f0f72998a299072424af5ac22b009a Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Fri, 25 Dec 2015 11:45:19 +0800 Subject: [PATCH] fix index --- shadowsocks/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/server.py b/shadowsocks/server.py index f672de9..6ec63c0 100755 --- a/shadowsocks/server.py +++ b/shadowsocks/server.py @@ -74,7 +74,7 @@ def main(): if type(password_obfs) == list: password = password_obfs[0] obfs = password_obfs[1] - if len(password_obfs) >= 2: + if len(password_obfs) > 2: protocol = password_obfs[2] elif type(password_obfs) == dict: password = password_obfs.get('password', 'm')