mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-23 23:06:49 +09:00
types: include ExitRoutes in HasNetworkChanges
When exit routes are approved, SubnetRoutes remains empty because exit routes (0.0.0.0/0, ::/0) are classified separately. Without checking ExitRoutes, the PolicyManager cache is not invalidated on exit route approval, causing stale filter rules that lack via grant entries for autogroup:internet destinations. Updates #2180
This commit is contained in:
1 parent
a76b4bd46c
commit
15c1cfd778
2 files changed
+35
No files matched your search
@@ -1030,6 +1030,10 @@ func (nv NodeView) HasNetworkChanges(other NodeView) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if !slices.Equal(nv.ExitRoutes(), other.ExitRoutes()) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user