mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-14 21:28:17 +00:00
Do not unite() peers across different IP scopes as this would pretty much never work.
This commit is contained in:
@ -296,6 +296,9 @@ bool Switch::unite(const Address &p1,const Address &p2,bool force)
|
|||||||
if (!(cg.first))
|
if (!(cg.first))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (cg.first.ipScope() != cg.second.ipScope())
|
||||||
|
return false;
|
||||||
|
|
||||||
// Addresses are sorted in key for last unite attempt map for order
|
// Addresses are sorted in key for last unite attempt map for order
|
||||||
// invariant lookup: (p1,p2) == (p2,p1)
|
// invariant lookup: (p1,p2) == (p2,p1)
|
||||||
Array<Address,2> uniteKey;
|
Array<Address,2> uniteKey;
|
||||||
|
Reference in New Issue
Block a user