diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-09 11:23:44 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-09 11:23:44 -0800 |
| commit | 8a3b6984075df323daddd0fad8a5dc6cbfa751c0 (patch) | |
| tree | c6f96e9b146a023b9bd3f82fb8e0e4dfb4a22233 /osdep/ManagedRoute.cpp | |
| parent | 0c71d658fbecacde3c38655d663946a1f044fe58 (diff) | |
| parent | 7e2d6149759e84ab4dc4a4f2e025d143b2882900 (diff) | |
| download | infinitytier-8a3b6984075df323daddd0fad8a5dc6cbfa751c0.tar.gz infinitytier-8a3b6984075df323daddd0fad8a5dc6cbfa751c0.zip | |
Merge branch 'dev' of http://10.6.6.2/zerotier/ZeroTierOne into dev
Diffstat (limited to 'osdep/ManagedRoute.cpp')
| -rw-r--r-- | osdep/ManagedRoute.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/osdep/ManagedRoute.cpp b/osdep/ManagedRoute.cpp index 8ffbed2a..d7c80704 100644 --- a/osdep/ManagedRoute.cpp +++ b/osdep/ManagedRoute.cpp @@ -477,31 +477,6 @@ bool ManagedRoute::sync() } } - // Detect routes previously applied by ZT that don't exist in the system's route list. Re-apply these. - // NOTE: The following block was added in reaction to the macOS High Sierra 10.13.2 disappearing - // route issue. This comment should be removed once we're sure this block doesn't have any side-effects. - /* - - // Commented out temporarily to test more generalized fix - - bool found = false; - std::vector<_RTE> currRoutes(_getRTEs(_target,false)); - for(std::vector<_RTE>::iterator r(currRoutes.begin());r!=currRoutes.end();++r) { - if(_target == r->target) { - found = true; - break; - } - } - if (!found) { - // erase _applied enteries - std::map<InetAddress, bool>::iterator rt; - rt = _applied.find(leftt); - _applied.erase(rt, _applied.end()); - rt = _applied.find(rightt); - _applied.erase(rt, _applied.end()); - } - */ - if (!_applied.count(leftt)) { _applied[leftt] = false; // not ifscoped _routeCmd("add",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device); |
