mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Need to reconnect to Tor with the curr_settings Settings object after obtaining new bridges
This commit is contained in:
parent
04efd3fc0e
commit
12b725e821
2 changed files with 11 additions and 1 deletions
|
@ -230,6 +230,11 @@ class CensorshipCircumvention(object):
|
||||||
# selected the built-in bridges for a specific PT themselves.
|
# selected the built-in bridges for a specific PT themselves.
|
||||||
#
|
#
|
||||||
if bridge_source == "builtin":
|
if bridge_source == "builtin":
|
||||||
|
self.common.log(
|
||||||
|
"CensorshipCircumvention",
|
||||||
|
"save_settings",
|
||||||
|
"Will be using built-in bridges",
|
||||||
|
)
|
||||||
self.settings.set("bridges_type", "built-in")
|
self.settings.set("bridges_type", "built-in")
|
||||||
if bridge_type == "obfs4":
|
if bridge_type == "obfs4":
|
||||||
self.settings.set("bridges_builtin_pt", "obfs4")
|
self.settings.set("bridges_builtin_pt", "obfs4")
|
||||||
|
@ -239,6 +244,11 @@ class CensorshipCircumvention(object):
|
||||||
self.settings.set("bridges_builtin_pt", "meek-azure")
|
self.settings.set("bridges_builtin_pt", "meek-azure")
|
||||||
bridges_ok = True
|
bridges_ok = True
|
||||||
else:
|
else:
|
||||||
|
self.common.log(
|
||||||
|
"CensorshipCircumvention",
|
||||||
|
"save_settings",
|
||||||
|
"Will be using custom bridges",
|
||||||
|
)
|
||||||
# Any other type of bridge we can treat as custom.
|
# Any other type of bridge we can treat as custom.
|
||||||
self.settings.set("bridges_type", "custom")
|
self.settings.set("bridges_type", "custom")
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ class AutoConnectTab(QtWidgets.QWidget):
|
||||||
)
|
)
|
||||||
self.active = False
|
self.active = False
|
||||||
self.tor_con.show()
|
self.tor_con.show()
|
||||||
self.tor_con.start()
|
self.tor_con.start(self.curr_settings)
|
||||||
|
|
||||||
def _got_no_bridges(self):
|
def _got_no_bridges(self):
|
||||||
self.use_bridge_widget.progress.hide()
|
self.use_bridge_widget.progress.hide()
|
||||||
|
|
Loading…
Reference in a new issue