show SSU sessions

This commit is contained in:
orignal 2014-02-24 22:28:28 -05:00
parent 2ac36b1d31
commit 303855f59a
3 changed files with 17 additions and 1 deletions

View file

@ -144,6 +144,7 @@ namespace util
}
s << "<P>Transports</P>";
s << "NTCP<BR>";
for (auto it: i2p::transports.GetNTCPSessions ())
{
// RouterInfo of incoming connection doesn't have address
@ -157,6 +158,16 @@ namespace util
s << "<BR>";
}
}
auto ssuServer = i2p::transports.GetSSUServer ();
if (ssuServer)
{
s << "<BR>SSU<BR>";
for (auto it: ssuServer->GetSessions ())
{
auto endpoint = it.second->GetRemoteEndpoint ();
s << endpoint.address ().to_string () << ":" << endpoint.port () << "<BR>";
}
}
s << "<p><a href=\"zmw2cyw2vj7f6obx3msmdvdepdhnw2ctc4okza2zjxlukkdfckhq\">Flibusta</a></p>";
}