diff options
author | Joseph Henry <josephjah@gmail.com> | 2018-01-09 09:59:55 -0800 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2018-01-09 09:59:55 -0800 |
commit | 2e1bc6e500be4b7bdec3304245c8d19ab186a97c (patch) | |
tree | 35528204b48d8185e96220c4ac7b432bb947cb32 /osdep | |
parent | 6fbd15f8b22643a76c6b067335c5db6c406d209a (diff) | |
download | infinitytier-2e1bc6e500be4b7bdec3304245c8d19ab186a97c.tar.gz infinitytier-2e1bc6e500be4b7bdec3304245c8d19ab186a97c.zip |
Cleaned up old code for attempted fix for ticket #600
Diffstat (limited to 'osdep')
-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); |