mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
Fix bug when federation_domain_whitelist is an emtpy list
Outbound federation were incorrectly allowed when the config option was set to an empty list
This commit is contained in:
parent
15e8dd2ccc
commit
1d67b13674
1 changed files with 1 additions and 1 deletions
|
@ -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