all repos — website @ ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7

My website

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
commit

ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7

parent

32c5534de6df665235e0043bfae5eccd0626695c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M server.goserver.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))))