From 05be3a003d4b8b6f118a21c48a946fa97b56891a Mon Sep 17 00:00:00 2001 From: BJ Dweck Date: Tue, 6 Oct 2020 13:50:23 +0200 Subject: [PATCH] BUGFIX: Tor hidden service was being closed after publication --- torch-pub.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/torch-pub.py b/torch-pub.py index aec7adb..98fd542 100644 --- a/torch-pub.py +++ b/torch-pub.py @@ -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)