mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Fix check for bind_address
The empty string is a valid setting for the bind_address option, so explicitly check for None here instead. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
09f15918be
commit
702c020e58
8 changed files with 16 additions and 16 deletions
|
@ -87,7 +87,7 @@ class AppserviceServer(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:
|
||||
|
@ -112,7 +112,7 @@ class AppserviceServer(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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue