ipn/ipnlocal: check if suggested exit node is online

@nickkyl added an peer.Online check to suggestExitNodeUsingDERP, so it
should also check when running suggestExitNodeUsingTrafficSteering.

Updates tailscale/corp#29966

Signed-off-by: Simon Law <sfllaw@tailscale.com>
This commit is contained in:
Simon Law
2025-07-14 19:01:02 -07:00
committed by Simon Law
parent bfb344905f
commit 205f822372

View File

@@ -7907,6 +7907,9 @@ func suggestExitNodeUsingTrafficSteering(nb *nodeBackend, prev tailcfg.StableNod
if !p.Valid() {
return false
}
if !p.Online().Get() {
return false
}
if allowed != nil && !allowed.Contains(p.StableID()) {
return false
}