print full tunnel path

This commit is contained in:
orignal 2015-12-09 19:07:12 -05:00
parent a7b8b52dbd
commit badcd64b62
3 changed files with 19 additions and 26 deletions

View file

@ -194,25 +194,6 @@ namespace tunnel
}
return peers;
}
void Print (std::stringstream& s) const
{
TunnelHopConfig * hop = m_FirstHop;
if (!IsInbound ()) // outbound
s << "me";
s << "-->" << m_FirstHop->tunnelID;
while (hop)
{
s << ":" << GetIdentHashAbbreviation (hop->ident->GetIdentHash ()) << "-->";
if (!hop->isEndpoint)
s << hop->nextTunnelID;
else
return;
hop = hop->next;
}
// we didn't reach enpoint that mean we are last hop
s << ":me";
}
private: