initial implementation of autoApprovers support

This commit is contained in:
Benjamin George Roberts
2022-08-24 20:53:55 +10:00
parent cc0bec15ef
commit 004ebcaba1
3 changed files with 95 additions and 5 deletions

View File

@@ -42,7 +42,14 @@ func (h *Headscale) handlePollCommon(
Str("machine", machine.Hostname).
Err(err)
}
// update routes with peer information
err = h.EnableAutoApprovedRoutes(machine)
if err != nil {
//TODO
}
}
// From Tailscale client:
//
// ReadOnly is whether the client just wants to fetch the MapResponse,