diff --git a/ClientContext.h b/ClientContext.h
index 1a41acfc..d82058c6 100644
--- a/ClientContext.h
+++ b/ClientContext.h
@@ -110,6 +110,7 @@ namespace client
const decltype(m_ServerTunnels)& GetServerTunnels () const { return m_ServerTunnels; };
const decltype(m_ClientForwards)& GetClientForwards () const { return m_ClientForwards; }
const decltype(m_ServerForwards)& GetServerForwards () const { return m_ServerForwards; }
+ const i2p::proxy::HTTPProxy * GetHttpProxy () const { return m_HttpProxy; }
};
extern ClientContext context;
diff --git a/HTTPServer.cpp b/HTTPServer.cpp
index 890daf9e..99edf508 100644
--- a/HTTPServer.cpp
+++ b/HTTPServer.cpp
@@ -549,6 +549,15 @@ namespace http {
s << i2p::client::context.GetAddressBook ().ToAddress(ident);
s << "
\r\n"<< std::endl;
}
+ auto httpProxy = i2p::client::context.GetHttpProxy ();
+ if (httpProxy)
+ {
+ auto& ident = httpProxy->GetLocalDestination ()->GetIdentHash();
+ s << "";
+ s << "HTTP Proxy" << " ⇐ ";
+ s << i2p::client::context.GetAddressBook ().ToAddress(ident);
+ s << "
\r\n"<< std::endl;
+ }
s << "
\r\nServer Tunnels:
\r\n
\r\n";
for (auto& it: i2p::client::context.GetServerTunnels ())
{
diff --git a/I2PService.h b/I2PService.h
index 2df11909..59746a6f 100644
--- a/I2PService.h
+++ b/I2PService.h
@@ -38,6 +38,7 @@ namespace client
}
inline std::shared_ptr GetLocalDestination () { return m_LocalDestination; }
+ inline std::shared_ptr GetLocalDestination () const { return m_LocalDestination; }
inline void SetLocalDestination (std::shared_ptr dest) { m_LocalDestination = dest; }
void CreateStream (StreamRequestComplete streamRequestComplete, const std::string& dest, int port = 0);