diff --git a/broker/broker.go b/broker/broker.go index 6cb08d9..b544e64 100644 --- a/broker/broker.go +++ b/broker/broker.go @@ -12,7 +12,6 @@ import ( "fmt" "io/ioutil" "log" - "net" "net/http" "strings" "time" @@ -222,15 +221,6 @@ func robotsTxtHandler(w http.ResponseWriter, r *http.Request) { w.Write([]byte("User-agent: *\nDisallow:\n")) } -func ipHandler(w http.ResponseWriter, r *http.Request) { - remoteAddr := r.RemoteAddr - if net.ParseIP(remoteAddr).To4() == nil { - remoteAddr = "[" + remoteAddr + "]" - } - w.Header().Set("Content-Type", "text/plain; charset=utf-8") - w.Write([]byte(remoteAddr)) -} - func main() { var acmeEmail string var acmeHostnamesCommas string