mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 11:07:35 +00:00
ensure renabled auto-approve routes works (#1670)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user