mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-15 21:58:21 +00:00
Added preprocessor check for __APPLE__ as an attempted fix for ticket #600
This commit is contained in:
@ -1801,12 +1801,14 @@ public:
|
||||
bool haveRoute = false;
|
||||
|
||||
// Ignore routes implied by local managed IPs since adding the IP adds the route
|
||||
#ifndef __APPLE__
|
||||
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;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (haveRoute)
|
||||
continue;
|
||||
#ifndef ZT_SDK
|
||||
|
Reference in New Issue
Block a user