From 5ff72def9cd8ceebc13a9a6e28c1cab2a2f6dc19 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sun, 4 Mar 2018 16:49:01 +0100 Subject: [PATCH] Remove map Requires Google API key. --- http/http.go | 2 -- index.html | 7 ------- 2 files changed, 9 deletions(-) diff --git a/http/http.go b/http/http.go index 1f127f5..078dc70 100644 --- a/http/http.go +++ b/http/http.go @@ -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) diff --git a/index.html b/index.html index 7148a4f..d5b1d70 100644 --- a/index.html +++ b/index.html @@ -96,13 +96,6 @@ $ http {{ .Host }}/port/8080 } {{ end }} -{{ if .Map }} -
-

Map

-

-

-
-{{ end }}

FAQ

How do I force IPv4 or IPv6 lookup?