mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-10 15:20:38 -04:00
Only set Censorship Circumvention bridges if we actually received some
This commit is contained in:
parent
4fbe981c31
commit
035c398f82
1 changed files with 9 additions and 8 deletions
|
@ -242,6 +242,7 @@ class CensorshipCircumvention(object):
|
||||||
# Should we attempt to iterate over each type if one of them fails to connect?
|
# Should we attempt to iterate over each type if one of them fails to connect?
|
||||||
# But if so, how to stop it starting 3 separate Tor connection threads?
|
# But if so, how to stop it starting 3 separate Tor connection threads?
|
||||||
# for bridges in request_bridges["settings"]:
|
# for bridges in request_bridges["settings"]:
|
||||||
|
if bridge_settings["settings"]:
|
||||||
bridges = bridge_settings["settings"][0]["bridges"]
|
bridges = bridge_settings["settings"][0]["bridges"]
|
||||||
bridge_strings = bridges["bridge_strings"]
|
bridge_strings = bridges["bridge_strings"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue