mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-19 03:06:26 +00:00
Add additional TRACE output in pushDirectPaths.
This commit is contained in:
parent
0b354803f3
commit
547b1c6157
@ -229,7 +229,17 @@ void Peer::pushDirectPaths(const RuntimeEnvironment *RR,RemotePath *path,uint64_
|
|||||||
_lastDirectPathPush = now;
|
_lastDirectPathPush = now;
|
||||||
|
|
||||||
std::vector<Path> dps(RR->node->directPaths());
|
std::vector<Path> dps(RR->node->directPaths());
|
||||||
TRACE("pushing %u direct paths (local interface addresses) to %s",(unsigned int)dps.size(),_id.address().toString().c_str());
|
#ifdef ZT_TRACE
|
||||||
|
{
|
||||||
|
std::string ps;
|
||||||
|
for(std::vector<Path>::const_iterator p(dps.begin());p!=dps.end();++p) {
|
||||||
|
if (ps.length() > 0)
|
||||||
|
ps.push_back(',');
|
||||||
|
ps.append(p->address().toString());
|
||||||
|
}
|
||||||
|
TRACE("pushing %u direct paths (local interface addresses) to %s: %s",(unsigned int)dps.size(),_id.address().toString().c_str(),ps.c_str());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
std::vector<Path>::const_iterator p(dps.begin());
|
std::vector<Path>::const_iterator p(dps.begin());
|
||||||
while (p != dps.end()) {
|
while (p != dps.end()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user