diff options
author | Alan Pearce | 2024-04-21 11:23:02 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-21 12:49:59 +0200 |
commit | ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7 (patch) | |
tree | d6409883a390121113d227697bfd2dcf2dee3593 | |
parent | 32c5534de6df665235e0043bfae5eccd0626695c (diff) | |
download | website-ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7.tar.lz website-ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7.tar.zst website-ab1bd5cc1b63f0b03a2cda9999373c2ec8bcb6e7.zip |
stop macOS firewall prompts in development
make metrics server also listen on LISTEN_ADDRESS
-rw-r--r-- | server.go | 2 |
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)))) |