Tor version must actually be 0.3.3.1 for ephemeral v3 onion services

This commit is contained in:
Micah Lee 2018-09-18 17:31:40 -07:00
parent cc265491fd
commit 6da5ae84f7
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -459,7 +459,7 @@ class Onion(object):
raise TorErrorProtocolError(strings._('error_invalid_private_key'))
else:
# Work out if we can support v3 onion services, which are preferred
if Version(self.tor_version) >= Version('0.3.2.9') and not self.settings.get('use_legacy_v2_onions'):
if Version(self.tor_version) >= Version('0.3.3.1') and not self.settings.get('use_legacy_v2_onions'):
key_type = "ED25519-V3"
key_content = onionkey.generate_v3_private_key()[0]
else: