mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-08 15:16:52 +02:00
Compare commits
No commits in common. "be24a3e336fe7e380e0e883ec327e9d3f8cb2c4f" and "2f6bdd1c848e80fdaa402f4628efb1ba98b012da" have entirely different histories.
be24a3e336
...
2f6bdd1c84
1 changed files with 3 additions and 5 deletions
|
@ -323,11 +323,9 @@ namespace i2p
|
||||||
case eRouterStatusFirewalled:
|
case eRouterStatusFirewalled:
|
||||||
SetUnreachable (true, false); // ipv4
|
SetUnreachable (true, false); // ipv4
|
||||||
break;
|
break;
|
||||||
case eRouterStatusMesh:
|
|
||||||
m_RouterInfo.UpdateCaps (m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eReachable);
|
|
||||||
break;
|
|
||||||
case eRouterStatusProxy:
|
case eRouterStatusProxy:
|
||||||
m_RouterInfo.UpdateCaps (m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eUnreachable);
|
m_AcceptsTunnels = false;
|
||||||
|
UpdateCongestion ();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
;
|
;
|
||||||
|
@ -1491,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…
Add table
Add a link
Reference in a new issue