mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Special-case the default bind_addresses for metrics listener
turns out it doesn't really support ipv6, so let's hack around that by only listening on ipv4 by default.
This commit is contained in:
parent
19818d66af
commit
e3a0300431
2 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue