diff --git a/main.go b/main.go index 5e93e03..a6a6f76 100644 --- a/main.go +++ b/main.go @@ -60,12 +60,14 @@ func handleRoot(w http.ResponseWriter, r *http.Request) { if err != nil { log.Println(err.Error()) w.WriteHeader(http.StatusInternalServerError) + return } err = writeFormattedIP(w, Type, ip) if err != nil { log.Println(err.Error()) w.WriteHeader(http.StatusInternalServerError) + return } }