summaryrefslogtreecommitdiff
path: root/onionshare
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2018-12-05 20:33:45 -0800
committerMicah Lee <micah@micahflee.com>2018-12-05 20:33:45 -0800
commit1d1efb7e54bcc6dbfc56703a257f1de9f1ca3265 (patch)
treee0bc7ed59e8ebaee247059784aa477f74e1ff2fe /onionshare
parentaadb2a01f0ced1f31268adb6237f9ddd0bbc849a (diff)
downloadonionshare-1d1efb7e54bcc6dbfc56703a257f1de9f1ca3265.tar.gz
onionshare-1d1efb7e54bcc6dbfc56703a257f1de9f1ca3265.zip
Require tor 0.4.0.0 for v3 onion services (will change in the future). And update settings dialog so if the connected version of tor doesn't support v3 onions, then always show legacy options. If it does support v3 onions, allow 'Use legacy addresses'
Diffstat (limited to 'onionshare')
-rw-r--r--onionshare/onion.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/onionshare/onion.py b/onionshare/onion.py
index 6066f059..6673f8ee 100644
--- a/onionshare/onion.py
+++ b/onionshare/onion.py
@@ -387,6 +387,7 @@ class Onion(object):
# Get the tor version
self.tor_version = self.c.get_version().version_str
+ self.common.log('Onion', 'connect', 'Connected to tor {}'.format(self.tor_version))
# Do the versions of stem and tor that I'm using support ephemeral onion services?
list_ephemeral_hidden_services = getattr(self.c, "list_ephemeral_hidden_services", None)
@@ -403,7 +404,9 @@ class Onion(object):
self.supports_stealth = False
# Does this version of Tor support next-gen ('v3') onions?
- self.supports_next_gen_onions = self.tor_version > Version('0.3.3.1')
+ # Note, this is the version of Tor where this bug was fixed:
+ # https://trac.torproject.org/projects/tor/ticket/28619
+ self.supports_v3_onions = self.tor_version > Version('0.4.0.0')
def is_authenticated(self):
"""