mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-19 21:25:30 +00:00
clear extra bandwidth bit
This commit is contained in:
parent
7149b509d7
commit
b7c021af8c
@ -147,7 +147,7 @@ namespace i2p
|
|||||||
|
|
||||||
void RouterContext::SetHighBandwidth ()
|
void RouterContext::SetHighBandwidth ()
|
||||||
{
|
{
|
||||||
if (!m_RouterInfo.IsHighBandwidth ())
|
if (!m_RouterInfo.IsHighBandwidth () || m_RouterInfo.IsExtraBandwidth ())
|
||||||
{
|
{
|
||||||
m_RouterInfo.SetCaps ((m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eHighBandwidth) & ~i2p::data::RouterInfo::eExtraBandwidth);
|
m_RouterInfo.SetCaps ((m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eHighBandwidth) & ~i2p::data::RouterInfo::eExtraBandwidth);
|
||||||
UpdateRouterInfo ();
|
UpdateRouterInfo ();
|
||||||
@ -156,7 +156,7 @@ namespace i2p
|
|||||||
|
|
||||||
void RouterContext::SetLowBandwidth ()
|
void RouterContext::SetLowBandwidth ()
|
||||||
{
|
{
|
||||||
if (m_RouterInfo.IsHighBandwidth ())
|
if (m_RouterInfo.IsHighBandwidth () || m_RouterInfo.IsExtraBandwidth ())
|
||||||
{
|
{
|
||||||
m_RouterInfo.SetCaps (m_RouterInfo.GetCaps () & ~i2p::data::RouterInfo::eHighBandwidth & ~i2p::data::RouterInfo::eExtraBandwidth);
|
m_RouterInfo.SetCaps (m_RouterInfo.GetCaps () & ~i2p::data::RouterInfo::eHighBandwidth & ~i2p::data::RouterInfo::eExtraBandwidth);
|
||||||
UpdateRouterInfo ();
|
UpdateRouterInfo ();
|
||||||
@ -165,7 +165,7 @@ namespace i2p
|
|||||||
|
|
||||||
void RouterContext::SetExtraBandwidth ()
|
void RouterContext::SetExtraBandwidth ()
|
||||||
{
|
{
|
||||||
if (!m_RouterInfo.IsExtraBandwidth ())
|
if (!m_RouterInfo.IsExtraBandwidth () || !m_RouterInfo.IsHighBandwidth ())
|
||||||
{
|
{
|
||||||
m_RouterInfo.SetCaps (m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eExtraBandwidth | i2p::data::RouterInfo::eHighBandwidth);
|
m_RouterInfo.SetCaps (m_RouterInfo.GetCaps () | i2p::data::RouterInfo::eExtraBandwidth | i2p::data::RouterInfo::eHighBandwidth);
|
||||||
UpdateRouterInfo ();
|
UpdateRouterInfo ();
|
||||||
|
Loading…
Reference in New Issue
Block a user