ensure renabled auto-approve routes works (#1670)

This commit is contained in:
Kristoffer Dalby 2024-01-18 16:36:47 +01:00 committed by GitHub
parent 7e8bf4bfe5
commit 65376e2842
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 236 additions and 3 deletions

View file

@ -125,6 +125,14 @@ func (h *Headscale) handlePoll(
return
}
if h.ACLPolicy != nil {
// update routes with peer information
err = h.db.EnableAutoApprovedRoutes(h.ACLPolicy, node)
if err != nil {
logErr(err, "Error running auto approved routes")
}
}
}
// Services is mostly useful for discovery and not critical,