mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
show trafic for transit tunnels
This commit is contained in:
parent
c85ae61cfc
commit
040d0f5f58
3 changed files with 16 additions and 3 deletions
|
@ -104,15 +104,22 @@ namespace util
|
|||
s << "-->" << it.second->GetTunnelID ();
|
||||
else
|
||||
s << "-->" << it.second->GetTunnelID () << "-->";
|
||||
s << "<BR>";
|
||||
s << " " << it.second->GetNumTransmittedBytes () << "<BR>";
|
||||
}
|
||||
|
||||
s << "<P>Transports</P>";
|
||||
for (auto it: i2p::transports.GetNTCPSessions ())
|
||||
{
|
||||
// RouterInfo of incoming connection doesn't have address
|
||||
bool outgoing = it.second->GetRemoteRouterInfo ().GetNTCPAddress ();
|
||||
if (it.second->IsEstablished ())
|
||||
{
|
||||
if (outgoing) s << "-->";
|
||||
s << it.second->GetRemoteRouterInfo ().GetIdentHashAbbreviation () << ": "
|
||||
<< it.second->GetSocket ().remote_endpoint().address ().to_string () << "<BR>";
|
||||
<< it.second->GetSocket ().remote_endpoint().address ().to_string ();
|
||||
if (!outgoing) s << "-->";
|
||||
s << "<BR>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue