From ac29bdb5df0c7459748954e9bb496204bfcb4b58 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sat, 13 Jan 2018 19:18:33 -0800 Subject: [PATCH] Better way to get the onion service_id --- onionshare/onion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare/onion.py b/onionshare/onion.py index 2c2d86bb..02f062fb 100644 --- a/onionshare/onion.py +++ b/onionshare/onion.py @@ -406,7 +406,7 @@ class Onion(object): except ProtocolError: raise TorErrorProtocolError(strings._('error_tor_protocol_error')) - self.service_id = res.content()[0][2].split('=')[1] + self.service_id = res.service_id onion_host = self.service_id + '.onion' if self.stealth: