mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-16 00:34:09 -05:00
Better way to get the onion service_id
This commit is contained in:
parent
1cd36f6bbf
commit
ac29bdb5df
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ class Onion(object):
|
||||||
except ProtocolError:
|
except ProtocolError:
|
||||||
raise TorErrorProtocolError(strings._('error_tor_protocol_error'))
|
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'
|
onion_host = self.service_id + '.onion'
|
||||||
|
|
||||||
if self.stealth:
|
if self.stealth:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue