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
|
@ -1490,7 +1490,7 @@ namespace transport
|
|||
if (!ec)
|
||||
{
|
||||
LogPrint (eLogDebug, "NTCP2: Connected from ", ep);
|
||||
if (!i2p::util::net::IsInReservedRange(ep.address ()))
|
||||
if (!i2p::transport::transports.IsInReservedRange(ep.address ()))
|
||||
{
|
||||
if (m_PendingIncomingSessions.emplace (ep.address (), conn).second)
|
||||
{
|
||||
|
@ -1537,7 +1537,7 @@ namespace transport
|
|||
if (!ec)
|
||||
{
|
||||
LogPrint (eLogDebug, "NTCP2: Connected from ", ep);
|
||||
if (!i2p::util::net::IsInReservedRange(ep.address ()) ||
|
||||
if (!i2p::transport::transports.IsInReservedRange(ep.address ()) ||
|
||||
i2p::util::net::IsYggdrasilAddress (ep.address ()))
|
||||
{
|
||||
if (m_PendingIncomingSessions.emplace (ep.address (), conn).second)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue