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:
|
||||
SetUnreachable (true, false); // ipv4
|
||||
break;
|
||||
case eRouterStatusMesh:
|
||||
m_RouterInfo.UpdateCaps (m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eReachable);
|
||||
break;
|
||||
case eRouterStatusProxy:
|
||||
m_AcceptsTunnels = false;
|
||||
UpdateCongestion ();
|
||||
m_RouterInfo.UpdateCaps (m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eUnreachable);
|
||||
break;
|
||||
default:
|
||||
;
|
||||
|
@ -1489,7 +1491,7 @@ namespace i2p
|
|||
void RouterContext::UpdateCongestion ()
|
||||
{
|
||||
auto c = i2p::data::RouterInfo::eLowCongestion;
|
||||
if (!AcceptsTunnels () || !m_ShareRatio || (m_Error == eRouterErrorSymmetricNAT && !SupportsV6 () && !SupportsMesh ()))
|
||||
if (!AcceptsTunnels () || !m_ShareRatio)
|
||||
c = i2p::data::RouterInfo::eRejectAll;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue