Route re-add patch for linux build on Synology devices
This commit is contained in:
parent
61b413b57f
commit
b5b335a6f8
3 changed files with 12 additions and 1 deletions
|
@ -221,8 +221,10 @@ bool LinuxEthernetTap::addIp(const InetAddress &ip)
|
|||
return false;
|
||||
|
||||
std::vector<InetAddress> allIps(ips());
|
||||
#ifndef __SYNOLOGY__
|
||||
if (std::binary_search(allIps.begin(),allIps.end(),ip))
|
||||
return true;
|
||||
#endif
|
||||
|
||||
// Remove and reconfigure if address is the same but netmask is different
|
||||
for(std::vector<InetAddress>::iterator i(allIps.begin());i!=allIps.end();++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue