diff --git a/core/node/infra/metrics.go b/core/node/infra/metrics.go index 9e5d6f685..1fc92c06e 100644 --- a/core/node/infra/metrics.go +++ b/core/node/infra/metrics.go @@ -66,12 +66,8 @@ func (m *Metrics) StartMetricsServer(ctx context.Context, config config.MetricsC mux.Handle("/metrics", metricsHandler) - iface := config.Interface - if iface == "" { - iface = "localhost" - } m.httpServer = &http.Server{ - Addr: fmt.Sprintf("%s:%d", iface, config.Port), + Addr: fmt.Sprintf("%s:%d", config.Interface, config.Port), Handler: mux, }