Add default addIps() implementation to EthernetTap base class to fix build on systems that do not need addIps().
This commit is contained in:
@@ -119,4 +119,13 @@ std::shared_ptr<EthernetTap> EthernetTap::newInstance(
|
||||
EthernetTap::EthernetTap() {}
|
||||
EthernetTap::~EthernetTap() {}
|
||||
|
||||
bool EthernetTap::addIps(std::vector<InetAddress> ips)
|
||||
{
|
||||
for(std::vector<InetAddress>::const_iterator i(ips.begin());i!=ips.end();++i) {
|
||||
if (!addIp(*i))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
||||
Reference in New Issue
Block a user