mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
adding files to а VS project, showed external ip on statistics page
This commit is contained in:
@@ -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 ";
|
||||
break;
|
||||
case i2p::data::RouterInfo::eTransportSSU:
|
||||
s << "SSU ";
|
||||
break;
|
||||
}
|
||||
s << address.host.to_string() << ":" << address.port << "<BR>";
|
||||
}
|
||||
|
||||
s << "<P>Tunnels</P>";
|
||||
for (auto it: i2p::tunnel::tunnels.GetOutboundTunnels ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user