mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Build fix
This commit is contained in:
parent
8a9669f130
commit
105023bd87
3 changed files with 5 additions and 4 deletions
|
@ -64,12 +64,14 @@ public:
|
|||
const char *const dnp = (dn.length() > 0) ? dn.c_str() : (const char *)0;
|
||||
std::lock_guard<std::mutex> l(_managedRoutes_l);
|
||||
_managedRoutes[std::pair<InetAddress,unsigned int>(target,metric)] = std::shared_ptr<ManagedRoute>(new ManagedRoute(target,via,dnp));
|
||||
return 0;
|
||||
}
|
||||
|
||||
ZT_ALWAYS_INLINE int removeRoute(const InetAddress &target,const InetAddress &via,const unsigned int metric)
|
||||
{
|
||||
std::lock_guard<std::mutex> l(_managedRoutes_l);
|
||||
_managedRoutes.erase(std::pair<InetAddress,unsigned int>(target,metric));
|
||||
return 0;
|
||||
}
|
||||
|
||||
ZT_ALWAYS_INLINE int syncRoutes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue