summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2017-02-16 16:41:26 -0800
committerJoseph Henry <josephjah@gmail.com>2017-02-16 16:41:26 -0800
commitb5b335a6f844a21ac23e260b6deb8f69bdc61129 (patch)
treec6203fc37635cca259095425184a32249980ba4c /service
parent61b413b57f317785e067dd36dd54e6bd480c84ca (diff)
downloadinfinitytier-b5b335a6f844a21ac23e260b6deb8f69bdc61129.tar.gz
infinitytier-b5b335a6f844a21ac23e260b6deb8f69bdc61129.zip
Route re-add patch for linux build on Synology devices
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index aa90798f..dc3e0ed1 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -1088,12 +1088,17 @@ public:
}
}
for(std::vector<InetAddress>::iterator ip(newManagedIps.begin());ip!=newManagedIps.end();++ip) {
+#ifdef __SYNOLOGY__
+ if (!n.tap->addIp(*ip))
+ fprintf(stderr,"ERROR: unable to add ip address %s" ZT_EOL_S, ip->toString().c_str());
+#else
if (std::find(n.managedIps.begin(),n.managedIps.end(),*ip) == n.managedIps.end()) {
+
if (!n.tap->addIp(*ip))
fprintf(stderr,"ERROR: unable to add ip address %s" ZT_EOL_S, ip->toString().c_str());
}
+#endif
}
-
n.managedIps.swap(newManagedIps);
}