ensure renabled auto-approve routes works (#1670)
This commit is contained in:
parent
7e8bf4bfe5
commit
65376e2842
4 changed files with 236 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue