mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 15:55:17 +00:00
fix: dont set as firewalled if full-cone
full-cone NATs can function normally if we map the ports
This commit is contained in:
@@ -2444,7 +2444,9 @@ namespace transport
|
||||
session->SendPeerTest (6, buf + offset, len - offset, addr, true);
|
||||
}
|
||||
SetTestingState (false);
|
||||
if (GetRouterStatus () != eRouterStatusFirewalled && addr->IsPeerTesting ())
|
||||
if (i2p::context.GetError () == eRouterErrorFullConeNAT)
|
||||
SetRouterStatus (eRouterStatusOK);
|
||||
else if (GetRouterStatus () != eRouterStatusFirewalled && addr->IsPeerTesting ())
|
||||
{
|
||||
SetRouterStatus (eRouterStatusFirewalled);
|
||||
session->SetStatusChanged ();
|
||||
|
||||
Reference in New Issue
Block a user