Enable changing the interface the metrics listener binds to

This commit is contained in:
Erik Johnston 2015-05-22 13:13:07 +01:00
parent 254aa3c986
commit 59a0682f3e
2 changed files with 6 additions and 2 deletions

View file

@ -277,7 +277,7 @@ class SynapseHomeServer(HomeServer):
config,
metrics_resource,
),
interface="127.0.0.1",
interface=config.metrics_interface,
)
logger.info("Metrics now running on 127.0.0.1 port %d", config.metrics_port)