Skip to content

Commit

Permalink
Listen on both ip6 and ip4 to resolve localhost issue in Windows (whi…
Browse files Browse the repository at this point in the history
…ch resolves to both by default)
  • Loading branch information
Rob Archibald committed Feb 5, 2017
1 parent c73b58f commit 4d85bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginxauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (s *nginxauth) serve(port int) {
http.HandleFunc("/updateEmail", s.method("POST", updateEmail))
http.HandleFunc("/updatePassword", s.method("POST", updatePassword))

http.ListenAndServe(fmt.Sprintf("localhost:%d", port), s.fileLoggerHandler(handlers.CompressHandler(http.DefaultServeMux)))
http.ListenAndServe(fmt.Sprintf(":%d", port), s.fileLoggerHandler(handlers.CompressHandler(http.DefaultServeMux)))
}

func (s *nginxauth) fileLoggerHandler(h http.Handler) http.Handler {
Expand Down

0 comments on commit 4d85bad

Please sign in to comment.