ipn/ipnlocal: remove junk from suggestExitNodeUsingTrafficSteering (#17436)

This patch removes some code that didn’t get removed before merging
the changes in #16580.

Updates #cleanup
Updates #16551

Signed-off-by: Simon Law <sfllaw@tailscale.com>
pull/17437/head
Simon Law 2 months ago committed by GitHub
parent f42be719de
commit 9c3aec58ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7397,7 +7397,6 @@ func suggestExitNodeUsingTrafficSteering(nb *nodeBackend, allowed set.Set[tailcf
panic("missing traffic-steering capability")
}
var force tailcfg.NodeView
nodes := nb.AppendMatchingPeers(nil, func(p tailcfg.NodeView) bool {
if !p.Valid() {
return false
@ -7416,9 +7415,6 @@ func suggestExitNodeUsingTrafficSteering(nb *nodeBackend, allowed set.Set[tailcf
}
return true
})
if force.Valid() {
nodes = append(nodes[:0], force)
}
scores := make(map[tailcfg.NodeID]int, len(nodes))
score := func(n tailcfg.NodeView) int {

Loading…
Cancel
Save