mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
check for excluded routers during exploratory
This commit is contained in:
parent
ec59308fad
commit
7e5370fbe5
@ -1463,7 +1463,8 @@ namespace data
|
||||
bool checkIsReal = i2p::tunnel::tunnels.GetPreciseTunnelCreationSuccessRate () < NETDB_TUNNEL_CREATION_RATE_THRESHOLD; // too low rate
|
||||
std::lock_guard<std::mutex> l(m_RouterInfosMutex);
|
||||
for (const auto& it: m_RouterInfos)
|
||||
if (!it.second->IsDeclaredFloodfill () && (!checkIsReal || (it.second->HasProfile () && it.second->GetProfile ()->IsReal ())))
|
||||
if (!it.second->IsDeclaredFloodfill () && !excluded.count (it.first) &&
|
||||
(!checkIsReal || (it.second->HasProfile () && it.second->GetProfile ()->IsReal ())))
|
||||
eligible.push_back (it.second);
|
||||
}
|
||||
// reduce number of eligible routers if too many
|
||||
|
Loading…
Reference in New Issue
Block a user