One weird trick to prevent macOS firewall popup
Discovered by a stay-at-home developer!
This commit is contained in:
parent
d90552454d
commit
db0084f623
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue