Compare commits
2 commits
5766d39260
...
4512020596
| Author | SHA1 | Date | |
|---|---|---|---|
| 4512020596 | |||
| 15bd37c278 |
2 changed files with 19 additions and 11 deletions
|
|
@ -1648,6 +1648,9 @@ class Worker(QObject):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _maybe_auto_use_ticket(self):
|
def _maybe_auto_use_ticket(self):
|
||||||
|
profile_connection_type = self.profile.connection.code
|
||||||
|
|
||||||
|
if profile_connection_type == "wireguard":
|
||||||
try:
|
try:
|
||||||
which_ticket, error_msg = do_we_use_a_random_ticket(ticket_observer)
|
which_ticket, error_msg = do_we_use_a_random_ticket(ticket_observer)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
@ -1659,6 +1662,11 @@ class Worker(QObject):
|
||||||
if which_ticket is None or which_ticket == 'error':
|
if which_ticket is None or which_ticket == 'error':
|
||||||
return None
|
return None
|
||||||
return self._consume_ticket(which_ticket, None)
|
return self._consume_ticket(which_ticket, None)
|
||||||
|
# it's not wireguard,
|
||||||
|
else:
|
||||||
|
error_msg = "Tickets are not yet supported for Tor. We are very sorry, but we're not able to develop all features for all products."
|
||||||
|
print(error_msg)
|
||||||
|
return None
|
||||||
|
|
||||||
def _consume_ticket(self, which_ticket, which_location):
|
def _consume_ticket(self, which_ticket, which_location):
|
||||||
candidates = self._location_candidates(preferred=which_location)
|
candidates = self._location_candidates(preferred=which_location)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "sp-hydra-veil-gui"
|
name = "sp-hydra-veil-gui"
|
||||||
version = "2.3.0"
|
version = "2.3.1"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Simplified Privacy" },
|
{ name = "Simplified Privacy" },
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue