From aefbd48cc0e822ed31035d37b2a4ae546af30105 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Thu, 21 Sep 2023 15:42:33 +0530 Subject: [PATCH] fix: use ipv4 bind address --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9688232..86ea152 100644 --- a/main.go +++ b/main.go @@ -245,7 +245,7 @@ func (t *AugmentedTask) ExporterInformation() []*PrometheusTaskInfo { if len(i.NetworkBindings) > 0 { for _, nb := range i.NetworkBindings { - if int(*nb.ContainerPort) == exporterPort { + if int(*nb.ContainerPort) == exporterPort && *nb.BindIP == "0.0.0.0" { hostPort = *nb.HostPort } }