summary refs log tree commit diff
path: root/synapse/http/matrixfederationclient.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-04-03 11:41:28 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-04-03 11:41:28 +0100
commit999f7db6b0ad735ee7c952858cc19d617aac61b4 (patch)
treeaba24792876d1f7b84b9b7598a9c7a28a91ac746 /synapse/http/matrixfederationclient.py
parentNone is very different from [] (diff)
downloadsynapse-999f7db6b0ad735ee7c952858cc19d617aac61b4.tar.xz
Don't break logic when refactoring
Diffstat (limited to 'synapse/http/matrixfederationclient.py')
-rw-r--r--synapse/http/matrixfederationclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index 36d1015514..b834d06219 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -283,7 +283,7 @@ class MatrixFederationHttpClient(object):
         else:
             _sec_timeout = self.default_timeout
 
-        if (self.hs.config.federation_domain_whitelist and
+        if (self.hs.config.federation_domain_whitelist is not None and
                 request.destination not in self.hs.config.federation_domain_whitelist):
             raise FederationDeniedError(request.destination)