aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2021-12-14 14:32:00 +1100
committerMiguel Jacq <mig@mig5.net>2021-12-14 14:32:00 +1100
commit1aa67f840611c8e45d9ccd4e0f15ec7cc32a6992 (patch)
treefafd8995e89b5988c32f2f234fa2e0378ec9f209
parentb03823267e3b072b7f0a5663e18de432dd8465ce (diff)
downloadonionshare-1aa67f840611c8e45d9ccd4e0f15ec7cc32a6992.tar.gz
onionshare-1aa67f840611c8e45d9ccd4e0f15ec7cc32a6992.zip
Fix the saving of bridges received from CensorshipCircumvention API - need to also save the bridges_enabled setting else TorSettingsTab doesn't show them
-rw-r--r--cli/onionshare_cli/censorship.py5
-rw-r--r--desktop/src/onionshare/connection_tab.py1
2 files changed, 4 insertions, 2 deletions
diff --git a/cli/onionshare_cli/censorship.py b/cli/onionshare_cli/censorship.py
index 5d3e71e5..e8bcbcc6 100644
--- a/cli/onionshare_cli/censorship.py
+++ b/cli/onionshare_cli/censorship.py
@@ -47,7 +47,7 @@ class CensorshipCircumvention(object):
self.common.log(
"CensorshipCircumvention",
"__init__",
- "Using Meek with CensorShipCircumvention API",
+ "Using Meek with CensorshipCircumvention API",
)
self.api_proxies = self.meek.meek_proxies
if onion:
@@ -58,7 +58,7 @@ class CensorshipCircumvention(object):
self.common.log(
"CensorshipCircumvention",
"__init__",
- "Using Tor with CensorShipCircumvention API",
+ "Using Tor with CensorshipCircumvention API",
)
(socks_address, socks_port) = self.onion.get_tor_socks_port()
self.api_proxies = {
@@ -256,6 +256,7 @@ class CensorshipCircumvention(object):
"save_settings",
"Saving settings with automatically-obtained bridges",
)
+ self.settings.set("bridges_enabled", True)
self.settings.save()
return True
else:
diff --git a/desktop/src/onionshare/connection_tab.py b/desktop/src/onionshare/connection_tab.py
index 5beb91b3..37f3e7a8 100644
--- a/desktop/src/onionshare/connection_tab.py
+++ b/desktop/src/onionshare/connection_tab.py
@@ -172,6 +172,7 @@ class AutoConnectTab(QtWidgets.QWidget):
self.active = False
self.tor_con.fail.emit()
self.open_tor_settings()
+ self.close_this_tab.emit()
def _censorship_progress_update(self, progress, summary):
self.use_bridge_widget.progress.setValue(int(progress))