mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
handle 'reservedrange' param properly
This commit is contained in:
parent
2ad26dd4c9
commit
ca9782dd0d
8 changed files with 36 additions and 31 deletions
|
@ -1471,7 +1471,7 @@ namespace transport
|
|||
ResendHandshakePacket (); // assume we receive
|
||||
return;
|
||||
}
|
||||
if (from != m_RemoteEndpoint && !i2p::util::net::IsInReservedRange (from.address ()))
|
||||
if (from != m_RemoteEndpoint && !i2p::transport::transports.IsInReservedRange (from.address ()))
|
||||
{
|
||||
LogPrint (eLogInfo, "SSU2: Remote endpoint update ", m_RemoteEndpoint, "->", from);
|
||||
m_RemoteEndpoint = from;
|
||||
|
@ -1753,7 +1753,7 @@ namespace transport
|
|||
if (ExtractEndpoint (buf, len, ep))
|
||||
{
|
||||
LogPrint (eLogInfo, "SSU2: Our external address is ", ep);
|
||||
if (!i2p::util::net::IsInReservedRange (ep.address ()))
|
||||
if (!i2p::transport::transports.IsInReservedRange (ep.address ()))
|
||||
{
|
||||
i2p::context.UpdateAddress (ep.address ());
|
||||
// check our port
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue