diff options
author | Micah Lee <micah@micahflee.com> | 2018-01-13 19:18:33 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2018-01-13 19:18:33 -0800 |
commit | a73f1471a242900d188df6b4bafddc57dfa315d6 (patch) | |
tree | d9a61b6efa3f8618acedb3672cb1870d000ce3ce /onionshare | |
parent | 627ea18f834375c4ef11b94cef2a666c64749cdb (diff) | |
download | onionshare-a73f1471a242900d188df6b4bafddc57dfa315d6.tar.gz onionshare-a73f1471a242900d188df6b4bafddc57dfa315d6.zip |
Better way to get the onion service_id
Diffstat (limited to 'onionshare')
-rw-r--r-- | onionshare/onion.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |