mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-13 18:31:51 +00:00
test a change to how switch hops are selected when multiple links are idle
This commit is contained in:
parent
2abb71682f
commit
1a2b7a8b60
1 changed files with 2 additions and 1 deletions
|
@ -676,7 +676,8 @@ func (t *switchTable) handleIn(packet []byte, idle map[switchPort]time.Time) boo
|
||||||
update = true
|
update = true
|
||||||
case cinfo.dist > bestDist:
|
case cinfo.dist > bestDist:
|
||||||
//nothing
|
//nothing
|
||||||
case thisTime.Before(bestTime):
|
case thisTime.After(bestTime):
|
||||||
|
// Pick the one that was used most recently -- at least this should pick the same link consistently in low-traffic scenarios
|
||||||
update = true
|
update = true
|
||||||
default:
|
default:
|
||||||
//nothing
|
//nothing
|
||||||
|
|
Loading…
Reference in a new issue