From d9ca0d794392b233d6a514252274bea1e2b89a87 Mon Sep 17 00:00:00 2001 From: aditsachde <23707194+aditsachde@users.noreply.github.com> Date: Tue, 1 Oct 2019 14:49:35 -0400 Subject: [PATCH] Update common/basecomponent/base.go Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- common/basecomponent/base.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/basecomponent/base.go b/common/basecomponent/base.go index 29abd7ee9..39b80b057 100644 --- a/common/basecomponent/base.go +++ b/common/basecomponent/base.go @@ -151,7 +151,8 @@ func (b *BaseDendrite) CreateFederationClient() *gomatrixserverlib.FederationCli // SetupAndServeHTTP sets up the HTTP server to serve endpoints registered on // ApiMux under /api/ and adds a prometheus handler under /metrics. func (b *BaseDendrite) SetupAndServeHTTP(bindaddr string, listenaddr string) { - + // If a separate bind address is defined, listen on that. Otherwise use + // the listen address var addr string if bindaddr != "" { addr = bindaddr