BUGFIX: Tor hidden service was being closed after publication

This commit is contained in:
B.J. Dweck 2020-10-06 13:50:23 +02:00
parent 2948cf7f07
commit 05be3a003d

View File

@ -59,7 +59,9 @@ with Controller.from_port(port = torControllerPort) as controller:
print("Connected to Tor on port %s" % (torControllerPort)) print("Connected to Tor on port %s" % (torControllerPort))
service = controller.create_ephemeral_hidden_service(sshPort) service = controller.create_ephemeral_hidden_service(
sshPort,
detached = True)
onionAddress = "%s.onion" % (service.service_id) onionAddress = "%s.onion" % (service.service_id)