diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2016-12-20 00:41:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 00:41:42 +0000 |
commit | b7f4f902fad400d7653a9d246c5e18a24fc4fb6d (patch) | |
tree | b272f062a4e843423495973d286bd003fe07f061 /synapse/app/homeserver.py | |
parent | Merge pull request #1711 from matrix-org/matthew/utf8-password-change (diff) | |
parent | Fix check for bind_address (diff) | |
download | synapse-b7f4f902fad400d7653a9d246c5e18a24fc4fb6d.tar.xz |
Merge pull request #1712 from kyrias/fix-bind-address-none
Fix check for bind_address
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-x | synapse/app/homeserver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 2d6becad1a..6c69ccd7e2 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -175,7 +175,7 @@ class SynapseHomeServer(HomeServer): root_resource = create_resource_tree(resources, root_resource) - if bind_address: + if bind_address is not None: bind_addresses.append(bind_address) if tls: @@ -215,7 +215,7 @@ class SynapseHomeServer(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: |