mirror of
https://github.com/mpolden/echoip.git
synced 2025-06-26 20:57:51 +02:00
Remove map
Requires Google API key.
This commit is contained in:
@ -202,13 +202,11 @@ func (s *Server) DefaultHandler(w http.ResponseWriter, r *http.Request) *appErro
|
||||
Host string
|
||||
JSON string
|
||||
Port bool
|
||||
Map bool
|
||||
}{
|
||||
response,
|
||||
r.Host,
|
||||
string(json),
|
||||
s.LookupPort != nil,
|
||||
response.Country != "" && response.City != "",
|
||||
}
|
||||
if err := t.Execute(w, &data); err != nil {
|
||||
return internalServerError(err)
|
||||
|
Reference in New Issue
Block a user