mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
adding files to а VS project, showed external ip on statistics page
This commit is contained in:
parent
05f0a72a0f
commit
7f26296759
3 changed files with 22 additions and 0 deletions
|
@ -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 ())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue