diff --git a/api.go b/api.go index 27cbede..5ac0d3d 100644 --- a/api.go +++ b/api.go @@ -679,6 +679,7 @@ func (h *Headscale) handleMachineRegistrationNew( // The machine registration is new, redirect the client to the registration URL log.Debug(). + Caller(). Str("machine", registerRequest.Hostinfo.Hostname). Msg("The node seems to be new, sending auth url") if h.cfg.OIDC.Issuer != "" { diff --git a/app.go b/app.go index f632264..a5015c9 100644 --- a/app.go +++ b/app.go @@ -467,7 +467,7 @@ func (h *Headscale) createNoiseMux() *mux.Router { router := mux.NewRouter() router.HandleFunc("/machine/register", h.NoiseRegistrationHandler).Methods(http.MethodPost) - router.HandleFunc("/machine/map", h.NoisePollNetMapHandler).Methods(http.MethodPost) + router.HandleFunc("/machine/map", h.NoisePollNetMapHandler) return router }