From a5cb81c7dc2f8638af99e0730037eefb18b6038a Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Thu, 4 Apr 2024 16:56:17 -0500 Subject: [PATCH] Use localhost as default host to listen on This will prevent macOS from issuing pop-up modals asking for approval for network access --- _runtime/cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_runtime/cmd/main.go b/_runtime/cmd/main.go index f18cde4..0c2e417 100644 --- a/_runtime/cmd/main.go +++ b/_runtime/cmd/main.go @@ -65,7 +65,7 @@ func main() { if *unixSocket != "" { ln, err = net.Listen("unix", *unixSocket) } else { - host := "0.0.0.0" + host := "localhost" addr := host + ":" + *port ln, err = net.Listen("tcp4", addr) // TODO(paulsmith): may want to support IPv6 }