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