mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 17:04:13 +00:00
eliminate false positive symmetric NAT
This commit is contained in:
parent
f162876600
commit
6012585067
@ -685,7 +685,12 @@ namespace transport
|
|||||||
LogPrint (eLogInfo, "SSU: Our external address is ", ourIP.to_string (), ":", ourPort);
|
LogPrint (eLogInfo, "SSU: Our external address is ", ourIP.to_string (), ":", ourPort);
|
||||||
i2p::context.UpdateAddress (ourIP);
|
i2p::context.UpdateAddress (ourIP);
|
||||||
if (ourPort != m_Server.GetPort ())
|
if (ourPort != m_Server.GetPort ())
|
||||||
i2p::context.SetError (eRouterErrorSymmetricNAT);
|
{
|
||||||
|
if (i2p::context.GetStatus () == eRouterStatusTesting)
|
||||||
|
i2p::context.SetError (eRouterErrorSymmetricNAT);
|
||||||
|
}
|
||||||
|
else if (i2p::context.GetStatus () == eRouterStatusError && i2p::context.GetError () == eRouterErrorSymmetricNAT)
|
||||||
|
i2p::context.SetStatus (eRouterStatusTesting);
|
||||||
uint32_t nonce = bufbe32toh (buf);
|
uint32_t nonce = bufbe32toh (buf);
|
||||||
buf += 4; // nonce
|
buf += 4; // nonce
|
||||||
auto it = m_RelayRequests.find (nonce);
|
auto it = m_RelayRequests.find (nonce);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user