summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-09 11:23:44 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-09 11:23:44 -0800
commit8a3b6984075df323daddd0fad8a5dc6cbfa751c0 (patch)
treec6f96e9b146a023b9bd3f82fb8e0e4dfb4a22233 /service
parent0c71d658fbecacde3c38655d663946a1f044fe58 (diff)
parent7e2d6149759e84ab4dc4a4f2e025d143b2882900 (diff)
downloadinfinitytier-8a3b6984075df323daddd0fad8a5dc6cbfa751c0.tar.gz
infinitytier-8a3b6984075df323daddd0fad8a5dc6cbfa751c0.zip
Merge branch 'dev' of http://10.6.6.2/zerotier/ZeroTierOne into dev
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index c4d29c52..2e9c530d 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -1609,6 +1609,7 @@ public:
bool haveRoute = false;
// Ignore routes implied by local managed IPs since adding the IP adds the route
+ // Commented out to fix ticket #600 (disappearing routes on macOS). Remove this block when we're sure there's no side effects
/*
for(std::vector<InetAddress>::iterator ip(n.managedIps.begin());ip!=n.managedIps.end();++ip) {
if ((target->netmaskBits() == ip->netmaskBits())&&(target->containsAddress(*ip))) {
@@ -2278,6 +2279,8 @@ public:
return 0;
}
}
+ }
+ if (gbl) {
for(std::vector<InetAddress>::const_iterator a(gbl->begin());a!=gbl->end();++a) {
if (a->containsAddress(*reinterpret_cast<const InetAddress *>(remoteAddr)))
return 0;