mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 04:37:50 +02:00
understandable construction for client tunnels
This commit is contained in:
parent
008fb561b8
commit
c86a1f63a2
6 changed files with 19 additions and 4 deletions
|
@ -978,9 +978,11 @@ namespace http {
|
|||
auto& ident = it.second->GetLocalDestination ()->GetIdentHash();
|
||||
s << "<div class=\"listitem\"><a href=\"" << webroot << "?page=" << HTTP_PAGE_LOCAL_DESTINATION << "&b32=" << ident.ToBase32 () << "\">";
|
||||
s << it.second->GetName () << "</a> ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident) << "; ";
|
||||
s << it.first.address() << ":" << it.first.port();
|
||||
s << " ⇒ ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident);
|
||||
if (it.second->GetRemoteDestination() != "") // no remote destination for proxy
|
||||
s << it.second->GetRemoteDestination() << ":" << it.second->GetRemoteDestinationPort();
|
||||
s << "</div>\r\n"<< std::endl;
|
||||
}
|
||||
auto httpProxy = i2p::client::context.GetHttpProxy ();
|
||||
|
@ -989,9 +991,9 @@ namespace http {
|
|||
auto& ident = httpProxy->GetLocalDestination ()->GetIdentHash();
|
||||
s << "<div class=\"listitem\"><a href=\"" << webroot << "?page=" << HTTP_PAGE_LOCAL_DESTINATION << "&b32=" << ident.ToBase32 () << "\">";
|
||||
s << "HTTP " << tr("Proxy") << "</a> ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident) << "; ";
|
||||
s << httpProxy->GetLocalEndpoint().address() << ":" << httpProxy->GetLocalEndpoint().port();
|
||||
s << " ⇒ ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident);
|
||||
s << "</div>\r\n"<< std::endl;
|
||||
}
|
||||
auto socksProxy = i2p::client::context.GetSocksProxy ();
|
||||
|
@ -1000,9 +1002,9 @@ namespace http {
|
|||
auto& ident = socksProxy->GetLocalDestination ()->GetIdentHash();
|
||||
s << "<div class=\"listitem\"><a href=\"" << webroot << "?page=" << HTTP_PAGE_LOCAL_DESTINATION << "&b32=" << ident.ToBase32 () << "\">";
|
||||
s << "SOCKS " << tr("Proxy") << "</a> ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident) << "; ";
|
||||
s << httpProxy->GetLocalEndpoint().address() << ":" << httpProxy->GetLocalEndpoint().port();
|
||||
s << " ⇒ ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident);
|
||||
s << "</div>\r\n"<< std::endl;
|
||||
}
|
||||
s << "</div>\r\n";
|
||||
|
@ -1033,9 +1035,11 @@ namespace http {
|
|||
auto& ident = it.second->GetLocalDestination ()->GetIdentHash();
|
||||
s << "<div class=\"listitem\"><a href=\"" << webroot << "?page=" << HTTP_PAGE_LOCAL_DESTINATION << "&b32=" << ident.ToBase32 () << "\">";
|
||||
s << it.second->GetName () << "</a> ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident) << "; ";
|
||||
s << it.first.address() << ":" << it.first.port();
|
||||
s << " ⇒ ";
|
||||
s << i2p::client::context.GetAddressBook ().ToAddress(ident);
|
||||
if (it.second->GetRemoteDestination() != "") // no remote destination for proxy
|
||||
s << it.second->GetRemoteDestination() << ":" << it.second->GetRemoteDestinationPort();
|
||||
s << "</div>\r\n"<< std::endl;
|
||||
}
|
||||
s << "</div>\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue