|
|
@ -259,20 +259,21 @@ namespace http { |
|
|
|
s << "<b>Our external address:</b>" << "<br>\r\n" ; |
|
|
|
s << "<b>Our external address:</b>" << "<br>\r\n" ; |
|
|
|
for (const auto& address : i2p::context.GetRouterInfo().GetAddresses()) |
|
|
|
for (const auto& address : i2p::context.GetRouterInfo().GetAddresses()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (address->IsNTCP2 ()) |
|
|
|
if (address->IsNTCP2 () && !address->IsPublishedNTCP2 ()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// TODO: show actual address
|
|
|
|
|
|
|
|
s << "NTCP2 supported <br>\r\n"; |
|
|
|
s << "NTCP2 supported <br>\r\n"; |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
switch (address->transportStyle) |
|
|
|
switch (address->transportStyle) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case i2p::data::RouterInfo::eTransportNTCP: |
|
|
|
case i2p::data::RouterInfo::eTransportNTCP: |
|
|
|
if (address->host.is_v6 ()) |
|
|
|
{ |
|
|
|
s << "NTCP6 "; |
|
|
|
s << "NTCP"; |
|
|
|
else |
|
|
|
if (address->IsPublishedNTCP2 ()) s << "2"; |
|
|
|
s << "NTCP "; |
|
|
|
if (address->host.is_v6 ()) s << "6"; |
|
|
|
break; |
|
|
|
s << " "; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
case i2p::data::RouterInfo::eTransportSSU: |
|
|
|
case i2p::data::RouterInfo::eTransportSSU: |
|
|
|
if (address->host.is_v6 ()) |
|
|
|
if (address->host.is_v6 ()) |
|
|
|
s << "SSU6 "; |
|
|
|
s << "SSU6 "; |
|
|
|