about summary refs log tree commit diff stats
path: root/server.go
diff options
context:
space:
mode:
authorAlan Pearce2024-04-21 11:23:02 +0200
committerAlan Pearce2024-04-21 12:49:59 +0200
commitab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7 (patch)
treed6409883a390121113d227697bfd2dcf2dee3593 /server.go
parent32c5534de6df665235e0043bfae5eccd0626695c (diff)
downloadwebsite-ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7.tar.lz
website-ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7.tar.zst
website-ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7.zip
stop macOS firewall prompts in development
make metrics server also listen on LISTEN_ADDRESS
Diffstat (limited to 'server.go')
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
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))))