From ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 21 Apr 2024 11:23:02 +0200 Subject: stop macOS firewall prompts in development make metrics server also listen on LISTEN_ADDRESS --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.go') diff --git a/server.go b/server.go index 9d04dc1..0835d68 100644 --- a/server.go +++ b/server.go @@ -186,7 +186,7 @@ func main() { }) go func() { - err := metricServer.Listen(":9091") + err := metricServer.Listen(net.JoinHostPort(runtimeConfig.ListenAddress, "9091")) log.Printf("failed to start metrics server: %v", err) }() log.Fatal(toplevel.Listen(net.JoinHostPort(runtimeConfig.ListenAddress, fmt.Sprint(runtimeConfig.Port)))) -- cgit 1.4.1