print direction of SSU session

This commit is contained in:
orignal 2014-03-12 07:37:43 -04:00
parent 695f1949eb
commit 27c7ea2801
2 changed files with 7 additions and 1 deletions

View file

@ -164,8 +164,13 @@ namespace util
s << "<BR>SSU<BR>";
for (auto it: ssuServer->GetSessions ())
{
// incoming connections don't have remote router
bool outgoing = it.second->GetRemoteRouter ();
auto endpoint = it.second->GetRemoteEndpoint ();
s << endpoint.address ().to_string () << ":" << endpoint.port () << "<BR>";
if (outgoing) s << "-->";
s << endpoint.address ().to_string () << ":" << endpoint.port ();
if (!outgoing) s << "-->";
s << "<BR>";
}
}
s << "<p><a href=\"zmw2cyw2vj7f6obx3msmdvdepdhnw2ctc4okza2zjxlukkdfckhq\">Flibusta</a></p>";