mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed crash and few other small issues
This commit is contained in:
parent
74815d7462
commit
06088ff7a2
3 changed files with 11 additions and 7 deletions
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue