Catch when SocksPort is empty.
This commit is contained in:
parent
215003d8dc
commit
7772796770
|
@ -371,7 +371,10 @@ def main(args=[]):
|
||||||
# TODO implement authentication token / cookie
|
# TODO implement authentication token / cookie
|
||||||
controller = Controller.from_port(port = options.a_controlport)
|
controller = Controller.from_port(port = options.a_controlport)
|
||||||
controller.authenticate()
|
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()
|
controller.close()
|
||||||
|
|
||||||
config = cp.ConfigParser()
|
config = cp.ConfigParser()
|
||||||
|
|
Loading…
Reference in New Issue