mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 15:29:38 -05:00
small text change
This commit is contained in:
parent
b38809b5d2
commit
4c56c490dd
@ -84,7 +84,7 @@ if __name__ == '__main__':
|
|||||||
port = randint(1025, 65535)
|
port = randint(1025, 65535)
|
||||||
|
|
||||||
# connect to the tor controlport
|
# connect to the tor controlport
|
||||||
print 'Connecting to Tor ControlPort to set up hidden service on port {0}'.format(port)
|
print 'Connecting to Tor control port to set up hidden service on port {0}'.format(port)
|
||||||
controlports = [9051, 9151]
|
controlports = [9051, 9151]
|
||||||
controller = False
|
controller = False
|
||||||
for controlport in controlports:
|
for controlport in controlports:
|
||||||
@ -93,7 +93,7 @@ if __name__ == '__main__':
|
|||||||
except SocketError:
|
except SocketError:
|
||||||
pass
|
pass
|
||||||
if not controller:
|
if not controller:
|
||||||
sys.exit('Cannot connect to Tor ControlPorts on ports {0}. Is Tor running?'.format(controlports))
|
sys.exit('Cannot connect to Tor control port on ports {0}. Is Tor running?'.format(controlports))
|
||||||
controller.authenticate()
|
controller.authenticate()
|
||||||
|
|
||||||
# set up hidden service
|
# set up hidden service
|
||||||
|
Loading…
Reference in New Issue
Block a user