Files
tailscale/ipn
Luke Kosewski c9be6ac621 ipn/ipnlocal: keep forced netmap caches current
TS_FORCE_CACHE_NETMAP currently permits full network-map writes without the cache-network-maps capability, but incremental peer updates still require that capability. A forced cache can therefore retain stale peer fields, additions, and removals until the control plane sends another full map.

Centralize the cache eligibility check and use it for both full maps and peer deltas. This keeps TS_USE_CACHED_NETMAP as the safety override and uses the existing delta result to evict removed peers by stable ID.

Extend TestUpdateNetMapCache to force caching without the control-plane capability and verify on-disk round trips after a peer patch, upsert, and removal.
2026-09-21 22:50:46 +00:00
..