mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-07 03:34:15 +00:00
fixed crash and few other small issues
This commit is contained in:
parent
74815d7462
commit
06088ff7a2
@ -218,7 +218,7 @@ namespace garlic
|
|||||||
}
|
}
|
||||||
|
|
||||||
GarlicRouting routing;
|
GarlicRouting routing;
|
||||||
GarlicRouting::GarlicRouting ()
|
GarlicRouting::GarlicRouting (): m_IsRunning (false), m_Thread (nullptr)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,13 +121,16 @@ namespace util
|
|||||||
s << "Our external address:" << "<BR>" << "<BR>";
|
s << "Our external address:" << "<BR>" << "<BR>";
|
||||||
for (auto& address : i2p::context.GetRouterInfo().GetAddresses())
|
for (auto& address : i2p::context.GetRouterInfo().GetAddresses())
|
||||||
{
|
{
|
||||||
switch (address.transportStyle) {
|
switch (address.transportStyle)
|
||||||
case i2p::data::RouterInfo::eTransportNTCP:
|
{
|
||||||
s << "NTCP ";
|
case i2p::data::RouterInfo::eTransportNTCP:
|
||||||
|
s << "NTCP ";
|
||||||
break;
|
break;
|
||||||
case i2p::data::RouterInfo::eTransportSSU:
|
case i2p::data::RouterInfo::eTransportSSU:
|
||||||
s << "SSU ";
|
s << "SSU ";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
s << "Unknown ";
|
||||||
}
|
}
|
||||||
s << address.host.to_string() << ":" << address.port << "<BR>";
|
s << address.host.to_string() << ":" << address.port << "<BR>";
|
||||||
}
|
}
|
||||||
|
3
SSU.cpp
3
SSU.cpp
@ -853,8 +853,9 @@ namespace ssu
|
|||||||
auto it = m_Sessions.find (oldEndpoint);
|
auto it = m_Sessions.find (oldEndpoint);
|
||||||
if (it != m_Sessions.end ())
|
if (it != m_Sessions.end ())
|
||||||
{
|
{
|
||||||
|
auto session = it->second;
|
||||||
m_Sessions.erase (it);
|
m_Sessions.erase (it);
|
||||||
m_Sessions[newEndpoint] = it->second;
|
m_Sessions[newEndpoint] = session;
|
||||||
LogPrint ("SSU session ressigned from ", oldEndpoint.address ().to_string (), ":", oldEndpoint.port (),
|
LogPrint ("SSU session ressigned from ", oldEndpoint.address ().to_string (), ":", oldEndpoint.port (),
|
||||||
" to ", newEndpoint.address ().to_string (), ":", newEndpoint.port ());
|
" to ", newEndpoint.address ().to_string (), ":", newEndpoint.port ());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user