Compare commits

..

No commits in common. "45120205969b9dccba505c856193321cd69c8c91" and "5766d392608137eb0db45da61d5ece189bc950da" have entirely different histories.

2 changed files with 11 additions and 19 deletions

View file

@ -1648,25 +1648,17 @@ class Worker(QObject):
return False
def _maybe_auto_use_ticket(self):
profile_connection_type = self.profile.connection.code
if profile_connection_type == "wireguard":
try:
which_ticket, error_msg = do_we_use_a_random_ticket(ticket_observer)
except Exception:
return None
if error_msg:
self._ticket_error_emitted = True
self.change_page.emit(f'Ticket use failed: {error_msg}', True)
return None
if which_ticket is None or which_ticket == 'error':
return 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)
try:
which_ticket, error_msg = do_we_use_a_random_ticket(ticket_observer)
except Exception:
return None
if error_msg:
self._ticket_error_emitted = True
self.change_page.emit(f'Ticket use failed: {error_msg}', True)
return None
if which_ticket is None or which_ticket == 'error':
return None
return self._consume_ticket(which_ticket, None)
def _consume_ticket(self, which_ticket, which_location):
candidates = self._location_candidates(preferred=which_location)

View file

@ -1,6 +1,6 @@
[project]
name = "sp-hydra-veil-gui"
version = "2.3.1"
version = "2.3.0"
authors = [
{ name = "Simplified Privacy" },
]