Only allow new overwrite if not bonded

This commit is contained in:
Joseph Henry 2023-03-21 09:54:31 -07:00
commit aa1f260bc1
No known key found for this signature in database
GPG key ID: C45B33FF5EBC9344

View file

@ -111,7 +111,7 @@ void Peer::received(
} }
// If same address on same interface then don't learn unless existing path isn't alive (prevents learning loop) // If same address on same interface then don't learn unless existing path isn't alive (prevents learning loop)
if (_paths[i].p->address().ipsEqual(path->address()) && _paths[i].p->localSocket() == path->localSocket()) { if (_paths[i].p->address().ipsEqual(path->address()) && _paths[i].p->localSocket() == path->localSocket()) {
if (_paths[i].p->alive(now)) { if (_paths[i].p->alive(now) && !_bond) {
havePath = true; havePath = true;
break; break;
} }