ipn/localapi: 404 on bad endpoints

Confused us for a while!

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
crawshaw/localapi404
David Crawshaw 3 years ago
parent b2a597b288
commit 7824083c3c

@ -83,8 +83,10 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.serveCheckIPForwarding(w, r)
case "/localapi/v0/bugreport":
h.serveBugReport(w, r)
default:
case "/":
io.WriteString(w, "tailscaled\n")
default:
http.Error(w, "404 not found", 404)
}
}

Loading…
Cancel
Save