mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-31 22:40:48 +00:00
... route fix test
This commit is contained in:
parent
020d882e82
commit
16a878adb1
@ -1968,19 +1968,6 @@ public:
|
|||||||
if (!src)
|
if (!src)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Ignore routes implied by local managed IPs since adding the IP adds the route
|
|
||||||
#ifndef __APPLE__
|
|
||||||
bool haveRoute = false;
|
|
||||||
for(std::vector<InetAddress>::iterator ip(n.managedIps.begin());ip!=n.managedIps.end();++ip) {
|
|
||||||
if ((target->netmaskBits() == ip->netmaskBits())&&(target->containsAddress(*ip))) {
|
|
||||||
haveRoute = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (haveRoute)
|
|
||||||
continue;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
haveRouteTargets.insert(*target);
|
haveRouteTargets.insert(*target);
|
||||||
|
|
||||||
#ifndef ZT_SDK
|
#ifndef ZT_SDK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user