BUGFIX: Tor hidden service was being closed after publication

dh_python
B.J. Dweck 2020-10-06 13:50:23 +02:00
parent 2948cf7f07
commit 05be3a003d
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ with Controller.from_port(port = torControllerPort) as controller:
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)