Fix the saving of bridges received from CensorshipCircumvention API - need to also save the bridges_enabled setting else TorSettingsTab doesn't show them

This commit is contained in:
Miguel Jacq 2021-12-14 14:32:00 +11:00
parent b03823267e
commit 1aa67f8406
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
2 changed files with 4 additions and 2 deletions

View file

@ -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: