Better way to get the onion service_id

This commit is contained in:
Micah Lee 2018-01-13 19:18:33 -08:00
parent 627ea18f83
commit a73f1471a2
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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: