Browse Source

set congesion cap G if symmetric NAT and ipv4 in only transport

pull/2117/head
orignal 2 months ago
parent
commit
ec4fe9a1e6
  1. 2
      libi2pd/RouterContext.cpp

2
libi2pd/RouterContext.cpp

@ -1489,7 +1489,7 @@ namespace i2p @@ -1489,7 +1489,7 @@ namespace i2p
void RouterContext::UpdateCongestion ()
{
auto c = i2p::data::RouterInfo::eLowCongestion;
if (!AcceptsTunnels () || !m_ShareRatio)
if (!AcceptsTunnels () || !m_ShareRatio || (m_Error == eRouterErrorSymmetricNAT && !SupportsV6 () && !SupportsMesh ()))
c = i2p::data::RouterInfo::eRejectAll;
else
{

Loading…
Cancel
Save