diff --git a/main.go b/main.go index 81804fc..5d75133 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,11 @@ func main() { } http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - port := domains[r.Host] + port, ok := domains[r.Host] + if !ok { + w.WriteHeader(http.StatusOK) + return + } rDump, err := httputil.DumpRequest(r, true) if err != nil {