LinuxEthernetTap addIps virtual function fix for SYNOLOGY builds

This commit is contained in:
Joseph Henry 2019-08-27 14:43:30 -07:00
parent ca89695270
commit d8de837c60
4 changed files with 9 additions and 9 deletions

View file

@ -1715,8 +1715,9 @@ public:
}
}
#ifdef __SYNOLOGY__
if (!n.tap->addIpSyn(newManagedIps))
if (!n.tap->addIps(newManagedIps)) {
fprintf(stderr,"ERROR: unable to add ip addresses to ifcfg" ZT_EOL_S);
}
#else
for(std::vector<InetAddress>::iterator ip(newManagedIps.begin());ip!=newManagedIps.end();++ip) {
if (std::find(n.managedIps.begin(),n.managedIps.end(),*ip) == n.managedIps.end()) {