|
|
@ -494,8 +494,9 @@ namespace http { |
|
|
|
auto ntcpServer = i2p::transport::transports.GetNTCPServer (); |
|
|
|
auto ntcpServer = i2p::transport::transports.GetNTCPServer (); |
|
|
|
if (ntcpServer) |
|
|
|
if (ntcpServer) |
|
|
|
{ |
|
|
|
{ |
|
|
|
s << "<b>NTCP</b><br>\r\n"; |
|
|
|
auto sessions = ntcpServer->GetNTCPSessions (); |
|
|
|
for (const auto& it: ntcpServer->GetNTCPSessions ()) |
|
|
|
s << "<b>NTCP</b> ( " << (int) sessions.size() << " )<br>\r\n"; |
|
|
|
|
|
|
|
for (const auto& it: sessions ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (it.second && it.second->IsEstablished ()) |
|
|
|
if (it.second && it.second->IsEstablished ()) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -512,8 +513,9 @@ namespace http { |
|
|
|
auto ssuServer = i2p::transport::transports.GetSSUServer (); |
|
|
|
auto ssuServer = i2p::transport::transports.GetSSUServer (); |
|
|
|
if (ssuServer) |
|
|
|
if (ssuServer) |
|
|
|
{ |
|
|
|
{ |
|
|
|
s << "<br>\r\n<b>SSU</b><br>\r\n"; |
|
|
|
auto sessions = ssuServer->GetSessions (); |
|
|
|
for (const auto& it: ssuServer->GetSessions ()) |
|
|
|
s << "<br>\r\n<b>SSU</b> ( " << (int) sessions.size() << " )<br>\r\n"; |
|
|
|
|
|
|
|
for (const auto& it: sessions) |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto endpoint = it.second->GetRemoteEndpoint (); |
|
|
|
auto endpoint = it.second->GetRemoteEndpoint (); |
|
|
|
if (it.second->IsOutgoing ()) s << " ⇒ "; |
|
|
|
if (it.second->IsOutgoing ()) s << " ⇒ "; |
|
|
|