mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-18 07:08:16 +00:00
Nominate newly-learned paths to bond
This commit is contained in:
@ -146,6 +146,10 @@ void Peer::received(
|
|||||||
_paths[replacePath].lr = now;
|
_paths[replacePath].lr = now;
|
||||||
_paths[replacePath].p = path;
|
_paths[replacePath].p = path;
|
||||||
_paths[replacePath].priority = 1;
|
_paths[replacePath].priority = 1;
|
||||||
|
Mutex::Lock _l(_bond_m);
|
||||||
|
if(_bond) {
|
||||||
|
_bond->nominatePathToBond(_paths[replacePath].p, now);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Mutex::Lock ltl(_lastTriedPath_m);
|
Mutex::Lock ltl(_lastTriedPath_m);
|
||||||
|
Reference in New Issue
Block a user