mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
recognize symmetric NAT from peer test msg 7
This commit is contained in:
parent
6589bdf6b5
commit
8db352b4d0
|
@ -1656,13 +1656,23 @@ namespace transport
|
||||||
{
|
{
|
||||||
if (isV4)
|
if (isV4)
|
||||||
{
|
{
|
||||||
if (i2p::context.GetStatus () == eRouterStatusTesting)
|
if (i2p::context.GetStatus () == eRouterStatusTesting ||
|
||||||
|
m_State == eSSU2SessionStatePeerTest)
|
||||||
|
{
|
||||||
i2p::context.SetError (eRouterErrorSymmetricNAT);
|
i2p::context.SetError (eRouterErrorSymmetricNAT);
|
||||||
|
i2p::context.SetStatus (eRouterStatusFirewalled);
|
||||||
|
m_Server.RescheduleIntroducersUpdateTimer ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (i2p::context.GetStatusV6 () == eRouterStatusTesting)
|
if (i2p::context.GetStatusV6 () == eRouterStatusTesting ||
|
||||||
|
m_State == eSSU2SessionStatePeerTest)
|
||||||
|
{
|
||||||
i2p::context.SetErrorV6 (eRouterErrorSymmetricNAT);
|
i2p::context.SetErrorV6 (eRouterErrorSymmetricNAT);
|
||||||
|
i2p::context.SetStatusV6 (eRouterStatusFirewalled);
|
||||||
|
m_Server.RescheduleIntroducersUpdateTimerV6 ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue