mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-13 19:53:28 +01:00
Merge pull request #3754 from matrix-org/erikj/fix_whitelist
Allow federation_domain_whitelist to be emtpy list
This commit is contained in:
commit
84b4e76fed
2 changed files with 2 additions and 1 deletions
1
changelog.d/3754.bugfix
Normal file
1
changelog.d/3754.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix 'federation_domain_whitelist' such that an empty list correctly blocks all outbound federation traffic
|
|
@ -133,7 +133,7 @@ class MatrixFederationHttpClient(object):
|
||||||
failures, connection failures, SSL failures.)
|
failures, connection failures, SSL failures.)
|
||||||
"""
|
"""
|
||||||
if (
|
if (
|
||||||
self.hs.config.federation_domain_whitelist and
|
self.hs.config.federation_domain_whitelist is not None and
|
||||||
destination not in self.hs.config.federation_domain_whitelist
|
destination not in self.hs.config.federation_domain_whitelist
|
||||||
):
|
):
|
||||||
raise FederationDeniedError(destination)
|
raise FederationDeniedError(destination)
|
||||||
|
|
Loading…
Reference in a new issue