mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-22 10:20:52 +00:00
... route fix test
This commit is contained in:
parent
020d882e82
commit
16a878adb1
@ -1968,19 +1968,6 @@ public:
|
||||
if (!src)
|
||||
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);
|
||||
|
||||
#ifndef ZT_SDK
|
||||
|
Loading…
x
Reference in New Issue
Block a user