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:
Erik Johnston committed 2018-08-24 12:13:12 +01:00
1 parent 15e8dd2ccc
commit 1d67b13674
1 file changed
+1 -1
+1 -1
View File
@@ -133,7 +133,7 @@ class MatrixFederationHttpClient(object):
failures, connection failures, SSL failures.)
"""
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
):
raise FederationDeniedError(destination)