Added noise poll handler

This commit is contained in:
Juan Font Alonso 2022-08-14 17:05:04 +02:00
parent 0d0042b7e6
commit c10142f767
2 changed files with 699 additions and 1 deletions

2
app.go
View file

@ -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).Methods(http.MethodPost)
return router
}