diff options
author | Joseph Henry <josephjah@gmail.com> | 2018-08-01 17:17:04 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2018-08-01 17:17:04 -0700 |
commit | e01c0adff28602d48ad6f0d618bee072ec7843da (patch) | |
tree | c87196b149f64830ef544cfc6f2a65c81e6b1f09 /service | |
parent | e75a093a8cd004856788032a3eb977c98359e9a6 (diff) | |
download | infinitytier-e01c0adff28602d48ad6f0d618bee072ec7843da.tar.gz infinitytier-e01c0adff28602d48ad6f0d618bee072ec7843da.zip |
Added ifdef checks to omit some ManagedRoute code in SDK builds
Diffstat (limited to 'service')
-rw-r--r-- | service/OneService.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 389cdc91..a34db4b4 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1646,7 +1646,7 @@ public: } if (haveRoute) continue; - +#ifndef ZT_SDK // If we've already applied this route, just sync it and continue for(std::list< SharedPtr<ManagedRoute> >::iterator mr(n.managedRoutes.begin());mr!=n.managedRoutes.end();++mr) { if ( ((*mr)->target() == *target) && ( ((via->ss_family == target->ss_family)&&((*mr)->via().ipsEqual(*via))) || (tapdev == (*mr)->device()) ) ) { @@ -1662,6 +1662,7 @@ public: n.managedRoutes.push_back(SharedPtr<ManagedRoute>(new ManagedRoute(*target,*via,tapdev))); if (!n.managedRoutes.back()->sync()) n.managedRoutes.pop_back(); +#endif } } } |