mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-24 02:25:24 +00:00
Call processMachineRoutes when a new Map is received
This commit is contained in:
parent
552f4bf19b
commit
ee9e64e57b
@ -32,6 +32,15 @@ func (h *Headscale) handlePollCommon(
|
|||||||
machine.DiscoKey = DiscoPublicKeyStripPrefix(mapRequest.DiscoKey)
|
machine.DiscoKey = DiscoPublicKeyStripPrefix(mapRequest.DiscoKey)
|
||||||
now := time.Now().UTC()
|
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)
|
// update ACLRules with peer informations (to update server tags if necessary)
|
||||||
if h.aclPolicy != nil {
|
if h.aclPolicy != nil {
|
||||||
err := h.UpdateACLRules()
|
err := h.UpdateACLRules()
|
||||||
|
Loading…
Reference in New Issue
Block a user