diff --git a/ClientContext.h b/ClientContext.h
index db74a19e..e392c8a2 100644
--- a/ClientContext.h
+++ b/ClientContext.h
@@ -113,6 +113,7 @@ namespace client
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; }
+ const i2p::proxy::SOCKSProxy * GetSocksProxy () const { return m_SocksProxy; }
};
extern ClientContext context;
diff --git a/HTTPServer.cpp b/HTTPServer.cpp
index 48ec9bd2..1ba22303 100644
--- a/HTTPServer.cpp
+++ b/HTTPServer.cpp
@@ -604,6 +604,15 @@ namespace http {
s << i2p::client::context.GetAddressBook ().ToAddress(ident);
s << "
\r\n"<< std::endl;
}
+ auto socksProxy = i2p::client::context.GetSocksProxy ();
+ if (socksProxy)
+ {
+ auto& ident = socksProxy->GetLocalDestination ()->GetIdentHash();
+ s << "";
+ s << "SOCKS 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 ())
{