mirror of
https://codeberg.org/crimeflare/cloudflare-tor
synced 2024-12-23 16:10:35 +00:00
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
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user