mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-12 17:10:20 +03:00
set congesion cap G if symmetric NAT and ipv4 in only transport
This commit is contained in:
parent
79e8ccbb5b
commit
ec4fe9a1e6
@ -1489,7 +1489,7 @@ namespace i2p
|
|||||||
void RouterContext::UpdateCongestion ()
|
void RouterContext::UpdateCongestion ()
|
||||||
{
|
{
|
||||||
auto c = i2p::data::RouterInfo::eLowCongestion;
|
auto c = i2p::data::RouterInfo::eLowCongestion;
|
||||||
if (!AcceptsTunnels () || !m_ShareRatio)
|
if (!AcceptsTunnels () || !m_ShareRatio || (m_Error == eRouterErrorSymmetricNAT && !SupportsV6 () && !SupportsMesh ()))
|
||||||
c = i2p::data::RouterInfo::eRejectAll;
|
c = i2p::data::RouterInfo::eRejectAll;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user