0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 14:32:30 +01:00

Pop bind_address

This commit is contained in:
Erik Johnston 2017-01-10 17:23:18 +00:00
parent edd6cdfc9a
commit b1dfd20292

View file

@ -43,7 +43,7 @@ class ServerConfig(Config):
self.listeners = config.get("listeners", []) self.listeners = config.get("listeners", [])
for listener in self.listeners: for listener in self.listeners:
bind_address = listener.get("bind_address", None) bind_address = listener.pop("bind_address", None)
bind_addresses = listener.setdefault("bind_addresses", []) bind_addresses = listener.setdefault("bind_addresses", [])
if bind_address: if bind_address: