mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -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 . import strings
|
||||||
from .gui_common import GuiCommon
|
from .gui_common import GuiCommon
|
||||||
|
from onionshare_cli.meek import MeekNotRunning
|
||||||
|
|
||||||
|
|
||||||
class MoatDialog(QtWidgets.QDialog):
|
class MoatDialog(QtWidgets.QDialog):
|
||||||
|
@ -227,6 +228,11 @@ class MoatThread(QtCore.QThread):
|
||||||
# Start Meek so that we can do domain fronting
|
# Start Meek so that we can do domain fronting
|
||||||
self.meek.start()
|
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":
|
if self.action == "fetch":
|
||||||
self.common.log("MoatThread", "run", f"starting fetch")
|
self.common.log("MoatThread", "run", f"starting fetch")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue