Browse Source

fix: metrics listener address sanitization (#1774)

In commit 3475762 from PR #1678 the restrictNetwork function was called
twice for the metrics listening address only, which leads to 0.0.0.0
listeners not working properly for the metrics server.
pull/1775/head
Thomas Anderson 2 years ago committed by GitHub
parent
commit
9ac2a05d58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/core/metrics.go

2
internal/core/metrics.go

@ -43,7 +43,7 @@ func newMetrics( @@ -43,7 +43,7 @@ func newMetrics(
readTimeout conf.StringDuration,
parent metricsParent,
) (*metrics, error) {
ln, err := net.Listen(restrictNetwork(restrictNetwork("tcp", address)))
ln, err := net.Listen(restrictNetwork("tcp", address))
if err != nil {
return nil, err
}

Loading…
Cancel
Save