X Tutup
Skip to content

Commit db0084f

Browse files
committed
One weird trick to prevent macOS firewall popup
Discovered by a stay-at-home developer!
1 parent d905524 commit db0084f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func main() {
3131
}
3232

3333
code := ""
34-
srv := &http.Server{Addr: fmt.Sprintf(":%d", port)}
34+
srv := &http.Server{Addr: fmt.Sprintf("localhost:%d", port)}
3535
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
3636
rq := r.URL.Query()
3737
code = rq.Get("code")

0 commit comments

Comments
 (0)
X Tutup