mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-22 10:20:52 +00:00
Add new replacement condition in peer path redundancy logic to fix duplicate paths
This commit is contained in:
parent
dc784f6213
commit
a1b2ff772a
@ -139,6 +139,9 @@ void Peer::received(
|
||||
if (q > replacePathQuality) {
|
||||
replacePathQuality = q;
|
||||
replacePath = i;
|
||||
if (!_paths[i].p->alive(now)) {
|
||||
break; // Stop searching, we found an identical dead path, replace the object
|
||||
}
|
||||
}
|
||||
} else {
|
||||
replacePath = i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user