... route fix test

This commit is contained in:
Adam Ierymenko 2020-11-13 16:18:00 -05:00
parent 020d882e82
commit 16a878adb1
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -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