mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
Call clean on all networks periodically, generalize Topology clean cycle to an overall clean cycle.
This commit is contained in:
@ -72,6 +72,13 @@ void NodeConfig::whackAllTaps()
|
||||
n->second->tap().whack();
|
||||
}
|
||||
|
||||
void NodeConfig::cleanAllNetworks()
|
||||
{
|
||||
Mutex::Lock _l(_networks_m);
|
||||
for(std::map< uint64_t,SharedPtr<Network> >::const_iterator n(_networks.begin());n!=_networks.end();++n)
|
||||
n->second->clean();
|
||||
}
|
||||
|
||||
// Macro used in execute()
|
||||
#undef _P
|
||||
#define _P(f,...) { r.push_back(std::string()); Utils::stdsprintf(r.back(),(f),##__VA_ARGS__); }
|
||||
|
Reference in New Issue
Block a user