Skip to content

Commit

Permalink
Fix for IPv6 addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Mar 16, 2013
1 parent 00d9c6a commit b041966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func ApiHandler(w http.ResponseWriter, r *http.Request) {
func httpServer() {
r := mux.NewRouter()
r.HandleFunc("/", HomeHandler)
r.HandleFunc("/data/{ip:[0-9.:]+}", ApiHandler)
r.HandleFunc("/data/{ip:[0-9a-f.:]+}", ApiHandler)
http.Handle("/", r)
http.ListenAndServe(":8085", nil)
}
Expand Down

0 comments on commit b041966

Please sign in to comment.