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
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,