Fixed not defined global SERVER, REMOTE_PORT, KEY, METHOD, and the default options

This commit is contained in:
thomashuang 2014-02-22 02:58:29 +08:00
parent 3088657309
commit 5dcaba7a16
2 changed files with 4 additions and 2 deletions

View file

@ -181,11 +181,13 @@ class ShadowSocksServer(object):
"local_port":1080,
"password":"barfoo!",
"timeout":600,
"method":"table"
"method":"table",
"IPv6": False
}
def serve_forever(self):
global SERVER, REMOTE_PORT, KEY, METHOD
self.set_logging()
self.run_info()
self.set_options()

View file

@ -142,7 +142,7 @@ class ShadowSocksServer(object):
"local_port":1080,
"password":"barfoo!",
"timeout":600,
"method":"table"
"method":"table",
"IPv6": False
}