From db0084f62329991529d2d0abfb2fa6652057f30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 9 Oct 2019 15:35:11 +0200 Subject: [PATCH] One weird trick to prevent macOS firewall popup Discovered by a stay-at-home developer! --- auth/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/oauth.go b/auth/oauth.go index b6a0cd2ce..714aed099 100644 --- a/auth/oauth.go +++ b/auth/oauth.go @@ -31,7 +31,7 @@ func main() { } code := "" - srv := &http.Server{Addr: fmt.Sprintf(":%d", port)} + srv := &http.Server{Addr: fmt.Sprintf("localhost:%d", port)} http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { rq := r.URL.Query() code = rq.Get("code")