summary refs log tree commit diff
path: root/synapse/app/federation_sender.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@arasphere.net>2016-12-20 00:41:42 +0000
committerGitHub <noreply@github.com>2016-12-20 00:41:42 +0000
commitb7f4f902fad400d7653a9d246c5e18a24fc4fb6d (patch)
treeb272f062a4e843423495973d286bd003fe07f061 /synapse/app/federation_sender.py
parentMerge pull request #1711 from matrix-org/matthew/utf8-password-change (diff)
parentFix check for bind_address (diff)
downloadsynapse-b7f4f902fad400d7653a9d246c5e18a24fc4fb6d.tar.xz
Merge pull request #1712 from kyrias/fix-bind-address-none
Fix check for bind_address
Diffstat (limited to 'synapse/app/federation_sender.py')
-rw-r--r--synapse/app/federation_sender.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/federation_sender.py b/synapse/app/federation_sender.py
index 8092fd316c..23aae8a09c 100644
--- a/synapse/app/federation_sender.py
+++ b/synapse/app/federation_sender.py
@@ -93,7 +93,7 @@ class FederationSenderServer(HomeServer):
 
         root_resource = create_resource_tree(resources, Resource())
 
-        if bind_address:
+        if bind_address is not None:
             bind_addresses.append(bind_address)
 
         for address in bind_addresses:
@@ -118,7 +118,7 @@ class FederationSenderServer(HomeServer):
                 bind_address = listener.get("bind_address", None)
                 bind_addresses = listener.get("bind_addresses", [])
 
-                if bind_address:
+                if bind_address is not None:
                     bind_addresses.append(bind_address)
 
                 for address in bind_addresses: