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