adding files to а VS project, showed external ip on statistics page

This commit is contained in:
chertov 2014-03-13 08:10:05 +04:00
parent 05f0a72a0f
commit 7f26296759
3 changed files with 22 additions and 0 deletions

View file

@ -118,6 +118,20 @@ namespace util
void HTTPConnection::FillContent (std::stringstream& s)
{
s << "Our external address:" << "<BR>" << "<BR>";
for (auto& address : i2p::context.GetRouterInfo().GetAddresses())
{
switch (address.transportStyle) {
case i2p::data::RouterInfo::eTransportNTCP:
s << "NTCP&nbsp;&nbsp;";
break;
case i2p::data::RouterInfo::eTransportSSU:
s << "SSU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
break;
}
s << address.host.to_string() << ":" << address.port << "<BR>";
}
s << "<P>Tunnels</P>";
for (auto it: i2p::tunnel::tunnels.GetOutboundTunnels ())
{