summaryrefslogtreecommitdiff
path: root/service/OneService.cpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-11-11 14:23:24 -0800
committerJoseph Henry <josephjah@gmail.com>2018-11-11 14:23:24 -0800
commitc6ae81fac751e02bfd898eb560a0efb38d037485 (patch)
treec0170d2575be1b9262d62e3f59607470e51d5b89 /service/OneService.cpp
parent79086f085803b1677e920472559ed6e043b1b4a1 (diff)
downloadinfinitytier-c6ae81fac751e02bfd898eb560a0efb38d037485.tar.gz
infinitytier-c6ae81fac751e02bfd898eb560a0efb38d037485.zip
Added preprocessor check for __APPLE__ as an attempted fix for ticket #600
Diffstat (limited to 'service/OneService.cpp')
-rw-r--r--service/OneService.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index c3769d05..8c65cfb6 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -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