mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-07 06:36:52 +02:00
Compare commits
2 commits
2f6bdd1c84
...
be24a3e336
Author | SHA1 | Date | |
---|---|---|---|
|
be24a3e336 | ||
|
d99a7d9b20 |
1 changed files with 5 additions and 3 deletions
|
@ -323,9 +323,11 @@ 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_AcceptsTunnels = false;
|
m_RouterInfo.UpdateCaps (m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eUnreachable);
|
||||||
UpdateCongestion ();
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
;
|
;
|
||||||
|
@ -1489,7 +1491,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 || (m_Error == eRouterErrorSymmetricNAT && !SupportsV6 () && !SupportsMesh ()))
|
if (!AcceptsTunnels () || !m_ShareRatio)
|
||||||
c = i2p::data::RouterInfo::eRejectAll;
|
c = i2p::data::RouterInfo::eRejectAll;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue