Browse Source

print tunnel peers in direct order

pull/695/head
orignal 8 years ago
parent
commit
a4883cfa15
  1. 5
      Tunnel.cpp

5
Tunnel.cpp

@ -184,10 +184,11 @@ namespace tunnel @@ -184,10 +184,11 @@ namespace tunnel
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 << " &#8658; ";
s << i2p::data::GetIdentHashAbbreviation (it->ident->GetIdentHash ());
s << i2p::data::GetIdentHashAbbreviation ((*it)->ident->GetIdentHash ());
}
}

Loading…
Cancel
Save