From 77727967709fa27551970aa512af33c9eece1e3a Mon Sep 17 00:00:00 2001 From: traumschule Date: Thu, 3 Jan 2019 21:37:22 -0500 Subject: Catch when SocksPort is empty. --- globalist/globalist/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3