mirror of
https://github.com/tailscale/tailscale.git
synced 2026-07-20 12:32:15 -04:00
routerConfigLocked previously computed router.Config.Routes with peerRoutes, a from-scratch pass over cfg.Peers on every reconfig. The route manager already maintains the same set incrementally (ULA and CGNAT coarsening included) and updateRouteManagerPrefs runs earlier in authReconfig, so its OS route set is current by the time the router config is built. Read it from there instead, and delete peerRoutes and its tests; the routemanager package tests cover the same behavior. This removes a consumer of cfg.Peers, which is on its way out. Updates #12542 Change-Id: I4a5b7a63d530e3fe1b70f0faf3f49def6a10be2e Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>