mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Try to bail if we are not in local-only mode and couldn't start the Meek client
This commit is contained in:
parent
5b4d77c363
commit
bd6390042f
1 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue