mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-25 01:56:37 +00:00
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>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user