mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-09 18:53:48 +02:00
Added MapPoll to Noise protocol
This commit is contained in:
6
app.go
6
app.go
@@ -445,7 +445,7 @@ func (h *Headscale) createNoiseMux() *http.ServeMux {
|
||||
mux := http.NewServeMux()
|
||||
|
||||
mux.HandleFunc("/machine/register", h.NoiseRegistrationHandler)
|
||||
// mux.HandleFunc("/machine/map", h.NoisePollNetMapHandler)
|
||||
mux.HandleFunc("/machine/map", h.NoisePollNetMapHandler)
|
||||
|
||||
return mux
|
||||
}
|
||||
@@ -747,6 +747,10 @@ func (h *Headscale) getTLSSettings() (*tls.Config, error) {
|
||||
// Configuration via autocert with HTTP-01. This requires listening on
|
||||
// port 80 for the certificate validation in addition to the headscale
|
||||
// service, which can be configured to run on any other port.
|
||||
httpRouter := gin.Default()
|
||||
httpRouter.POST(ts2021UpgradePath, h.NoiseUpgradeHandler)
|
||||
httpRouter.NoRoute(gin.WrapF(h.redirect))
|
||||
|
||||
go func() {
|
||||
log.Fatal().
|
||||
Caller().
|
||||
|
||||
Reference in New Issue
Block a user