Try to bail if we are not in local-only mode and couldn't start the Meek client

This commit is contained in:
Miguel Jacq 2021-10-19 11:46:21 +11:00
parent 5b4d77c363
commit bd6390042f
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6

View file

@ -25,6 +25,7 @@ import base64
from . import strings
from .gui_common import GuiCommon
from onionshare_cli.meek import MeekNotRunning
class MoatDialog(QtWidgets.QDialog):
@ -227,6 +228,11 @@ class MoatThread(QtCore.QThread):
# Start Meek so that we can do domain fronting
self.meek.start()
# We should only fetch bridges if we can domain front,
# but we can override this in local-only mode.
if not self.meek.meek_proxies and not self.common.gui.local_only:
raise MeekNotRunning()
if self.action == "fetch":
self.common.log("MoatThread", "run", f"starting fetch")