mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
show ECIESx25519 session and tag on the web console
This commit is contained in:
parent
7133a07f38
commit
27d69894d4
3 changed files with 22 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "HTTPServer.h"
|
||||
#include "Daemon.h"
|
||||
#include "util.h"
|
||||
#include "ECIESX25519AEADRatchetSession.h"
|
||||
#ifdef WIN32_APP
|
||||
#include "Win32/Win32App.h"
|
||||
#endif
|
||||
|
@ -409,6 +410,16 @@ namespace http {
|
|||
<< "<div class='content'>\r\n<table><tbody><thead><th>Destination</th><th>Amount</th></thead>\r\n" << tmp_s.str () << "</tbody></table>\r\n</div>\r\n</div>\r\n";
|
||||
} else
|
||||
s << "Outgoing: <i>0</i><br>\r\n";
|
||||
auto numECIESx25519Tags = dest->GetNumIncomingECIESx25519Tags ();
|
||||
if (numECIESx25519Tags > 0)
|
||||
s << "Incoming ECIESx25519: <i>" << numECIESx25519Tags << "</i><br>";
|
||||
if (!dest->GetECIESx25519Sessions ().empty ())
|
||||
{
|
||||
s << "<br>\r\n<b>ECIESx25519Tags sessions</b><br>";
|
||||
for (const auto& it: dest->GetECIESx25519Sessions ())
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(it.second->GetDestination ())
|
||||
<< " " << it.second->GetState () << "<br>\r\n";
|
||||
}
|
||||
s << "<br>\r\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue