mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 19:51:41 +00:00
ipn/localapi: 404 on bad endpoints
Confused us for a while! Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
de6dc4c510
commit
d2f838c058
@ -83,8 +83,10 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
h.serveCheckIPForwarding(w, r)
|
h.serveCheckIPForwarding(w, r)
|
||||||
case "/localapi/v0/bugreport":
|
case "/localapi/v0/bugreport":
|
||||||
h.serveBugReport(w, r)
|
h.serveBugReport(w, r)
|
||||||
default:
|
case "/":
|
||||||
io.WriteString(w, "tailscaled\n")
|
io.WriteString(w, "tailscaled\n")
|
||||||
|
default:
|
||||||
|
http.Error(w, "404 not found", 404)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user