mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-21 12:54:32 +09:00
Minor change in router
This commit is contained in:
1 parent
0f09e19e38
commit
aaa33cf093
2 files changed
+2
-1
No files matched your search
@@ -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 != "" {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user