|
|
|
@ -121,13 +121,16 @@ namespace util
@@ -121,13 +121,16 @@ namespace util
|
|
|
|
|
s << "Our external address:" << "<BR>" << "<BR>"; |
|
|
|
|
for (auto& address : i2p::context.GetRouterInfo().GetAddresses()) |
|
|
|
|
{ |
|
|
|
|
switch (address.transportStyle) { |
|
|
|
|
case i2p::data::RouterInfo::eTransportNTCP: |
|
|
|
|
s << "NTCP "; |
|
|
|
|
switch (address.transportStyle) |
|
|
|
|
{ |
|
|
|
|
case i2p::data::RouterInfo::eTransportNTCP: |
|
|
|
|
s << "NTCP "; |
|
|
|
|
break; |
|
|
|
|
case i2p::data::RouterInfo::eTransportSSU: |
|
|
|
|
s << "SSU "; |
|
|
|
|
case i2p::data::RouterInfo::eTransportSSU: |
|
|
|
|
s << "SSU "; |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
s << "Unknown "; |
|
|
|
|
} |
|
|
|
|
s << address.host.to_string() << ":" << address.port << "<BR>"; |
|
|
|
|
} |
|
|
|
|