summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-02-13 14:29:05 +0000
committerRichard van der Hoff <richard@matrix.org>2019-02-13 14:29:05 +0000
commitd97c3a6ce651f7ff2ffb8b7ba5abd1e292b62896 (patch)
tree661c3e7c0e9d9f561c5f4e32574617720110af7f /synapse/config/server.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentMerge pull request #4636 from matrix-org/rav/bind_address_fixes (diff)
downloadsynapse-d97c3a6ce651f7ff2ffb8b7ba5abd1e292b62896.tar.xz
Merge remote-tracking branch 'origin/release-v0.99.1' into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r--synapse/config/server.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py

index c5c3aac8ed..93a30e4cfa 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py
@@ -151,7 +151,11 @@ class ServerConfig(Config): # if we still have an empty list of addresses, use the default list if not bind_addresses: - bind_addresses.extend(DEFAULT_BIND_ADDRESSES) + if listener['type'] == 'metrics': + # the metrics listener doesn't support IPv6 + bind_addresses.append('0.0.0.0') + else: + bind_addresses.extend(DEFAULT_BIND_ADDRESSES) self.listeners.append(listener)