mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
SAM single and master sessions
This commit is contained in:
parent
bd33ac202f
commit
4018cf9d76
4 changed files with 64 additions and 43 deletions
|
@ -842,7 +842,7 @@ namespace http {
|
|||
s << "<b>SAM Sessions:</b><br>\r\n<div class=\"list\">\r\n";
|
||||
for (auto& it: sam->GetSessions ())
|
||||
{
|
||||
auto& name = it.second->localDestination->GetNickname ();
|
||||
auto& name = it.second->GetLocalDestination ()->GetNickname ();
|
||||
s << "<div class=\"listitem\"><a href=\"" << webroot << "?page=" << HTTP_PAGE_SAM_SESSION << "&sam_id=" << it.first << "\">";
|
||||
s << name << " (" << it.first << ")</a></div>\r\n" << std::endl;
|
||||
}
|
||||
|
@ -868,7 +868,7 @@ namespace http {
|
|||
|
||||
std::string webroot; i2p::config::GetOption("http.webroot", webroot);
|
||||
s << "<b>SAM Session:</b><br>\r\n<div class=\"list\">\r\n";
|
||||
auto& ident = session->localDestination->GetIdentHash();
|
||||
auto& ident = session->GetLocalDestination ()->GetIdentHash();
|
||||
s << "<div class=\"listitem\"><a href=\"" << webroot << "?page=" << HTTP_PAGE_LOCAL_DESTINATION << "&b32=" << ident.ToBase32 () << "\">";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident) << "</a></div>\r\n";
|
||||
s << "<br>\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue