Skip to content

Commit

Permalink
Call processMachineRoutes when a new Map is received
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont authored and kradalby committed Dec 6, 2022
1 parent fba77de commit ac8bff7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions protocol_common_poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ac8bff7

Please sign in to comment.