diff options
-rwxr-xr-x | globalist/globalist/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/globalist/globalist/__init__.py b/globalist/globalist/__init__.py index 12bad40a..73c6fe38 100755 --- a/globalist/globalist/__init__.py +++ b/globalist/globalist/__init__.py @@ -371,7 +371,10 @@ def main(args=[]): # TODO implement authentication token / cookie controller = Controller.from_port(port = options.a_controlport) controller.authenticate() - STATUS['socksport'] = controller.get_conf('SocksPort').split(" ",1)[0] + if controller.get_conf('SocksPort'): + STATUS['socksport'] = controller.get_conf('SocksPort').split(" ",1)[0] + else: + STATUS['socksport'] = 9050 controller.close() config = cp.ConfigParser() |