Skip to content

Commit

Permalink
set congesion cap G if symmetric NAT and ipv4 in only transport
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Oct 27, 2024
1 parent 79e8ccb commit ec4fe9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/RouterContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit ec4fe9a

Please sign in to comment.