mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Use the CensorshipCircumvention methods to fetch bridges for the country/autodetection
This commit is contained in:
parent
c101536d90
commit
3f4cb6a02e
5 changed files with 72 additions and 46 deletions
|
@ -127,6 +127,11 @@ class CensorshipCircumvention(object):
|
|||
endpoint = "https://bridges.torproject.org/moat/circumvention/settings"
|
||||
data = {}
|
||||
if country:
|
||||
self.common.log(
|
||||
"CensorshipCircumvention",
|
||||
"censorship_obtain_settings",
|
||||
f"Trying to obtain bridges for country={country}",
|
||||
)
|
||||
data = {"country": country}
|
||||
if transports:
|
||||
data.append({"transports": transports})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue