mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 06:54:15 +00:00
print tunnel peers in direct order
This commit is contained in:
parent
a41f179785
commit
a4883cfa15
@ -184,10 +184,11 @@ namespace tunnel
|
|||||||
|
|
||||||
void Tunnel::PrintHops (std::stringstream& s) const
|
void Tunnel::PrintHops (std::stringstream& s) const
|
||||||
{
|
{
|
||||||
for (auto& it: m_Hops)
|
// hops are in inverted order, we must print in direct order
|
||||||
|
for (auto it = m_Hops.rbegin (); it != m_Hops.rend (); it++)
|
||||||
{
|
{
|
||||||
s << " ⇒ ";
|
s << " ⇒ ";
|
||||||
s << i2p::data::GetIdentHashAbbreviation (it->ident->GetIdentHash ());
|
s << i2p::data::GetIdentHashAbbreviation ((*it)->ident->GetIdentHash ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user