diff --git a/hscontrol/app.go b/hscontrol/app.go index 5c85b064..737e8098 100644 --- a/hscontrol/app.go +++ b/hscontrol/app.go @@ -460,6 +460,7 @@ func (h *Headscale) createRouter(grpcMux *grpcRuntime.ServeMux) *mux.Router { if h.cfg.DERP.ServerEnabled { router.HandleFunc("/derp", h.DERPServer.DERPHandler) router.HandleFunc("/derp/probe", derpServer.DERPProbeHandler) + router.HandleFunc("/derp/latency-check", derpServer.DERPProbeHandler) router.HandleFunc("/bootstrap-dns", derpServer.DERPBootstrapDNSHandler(h.DERPMap)) } diff --git a/hscontrol/metrics.go b/hscontrol/metrics.go index 0be59eec..cb01838c 100644 --- a/hscontrol/metrics.go +++ b/hscontrol/metrics.go @@ -78,7 +78,7 @@ func prometheusMiddleware(next http.Handler) http.Handler { // Ignore streaming and noise sessions // it has its own router further down. - if path == "/ts2021" || path == "/machine/map" || path == "/derp" || path == "/derp/probe" || path == "/bootstrap-dns" { + if path == "/ts2021" || path == "/machine/map" || path == "/derp" || path == "/derp/probe" || path == "/derp/latency-check" || path == "/bootstrap-dns" { next.ServeHTTP(w, r) return }