diff options
author | Miguel Jacq <mig@mig5.net> | 2021-12-14 14:32:00 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2021-12-14 14:32:00 +1100 |
commit | 1aa67f840611c8e45d9ccd4e0f15ec7cc32a6992 (patch) | |
tree | fafd8995e89b5988c32f2f234fa2e0378ec9f209 /cli/onionshare_cli/censorship.py | |
parent | b03823267e3b072b7f0a5663e18de432dd8465ce (diff) | |
download | onionshare-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
Diffstat (limited to 'cli/onionshare_cli/censorship.py')
-rw-r--r-- | cli/onionshare_cli/censorship.py | 5 |
1 files changed, 3 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: |