Call processMachineRoutes when a new Map is received

This commit is contained in:
Juan Font authored and Kristoffer Dalby committed 2022-12-06 08:17:14 +01:00
1 parent fba77de4eb
commit ac8bff716d
1 file changed
+9
+9
View File
@@ -32,6 +32,15 @@ func (h *Headscale) handlePollCommon(
machine.DiscoKey = DiscoPublicKeyStripPrefix(mapRequest.DiscoKey)
now := time.Now().UTC()
err := h.processMachineRoutes(machine)
if err != nil {
log.Error().
Caller().
Err(err).
Str("machine", machine.Hostname).
Msg("Error processing machine routes")
}
// update ACLRules with peer informations (to update server tags if necessary)
if h.aclPolicy != nil {
err := h.UpdateACLRules()