Use the country block information provided by rdsys

rdsys does provide the list of countries where the bridge should not be distributed in the 'blocked_in' field.

Closes: #40036 (closed)

Merge request reports

Loading
+3 −0
Changes for bridgedb/bridges.py: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1580,6 +1580,9 @@ class Bridge(BridgeBackwardsCompatibility):
                    )
            self.transports = [transport]

        for country in resource["blocked_in"]:
            self.setBlockedIn(country)

    def updateFromNetworkStatus(self, descriptor, ignoreNetworkstatus=False):
        """Update this bridge's attributes from a parsed networkstatus
        document.
Loading