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')