stop macOS firewall prompts in development make metrics server also listen on LISTEN_ADDRESS
Alan Pearce alan@alanpearce.eu
Sun, 21 Apr 2024 11:23:02 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M server.go → server.go
@@ -186,7 +186,7 @@ } }) 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))))