mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
peer test for ipv6
This commit is contained in:
@@ -1149,12 +1149,12 @@ namespace data
|
||||
});
|
||||
}
|
||||
|
||||
std::shared_ptr<const RouterInfo> NetDb::GetRandomPeerTestRouter (bool v4only) const
|
||||
std::shared_ptr<const RouterInfo> NetDb::GetRandomPeerTestRouter (bool v4) const
|
||||
{
|
||||
return GetRandomRouter (
|
||||
[v4only](std::shared_ptr<const RouterInfo> router)->bool
|
||||
[v4](std::shared_ptr<const RouterInfo> router)->bool
|
||||
{
|
||||
return !router->IsHidden () && router->IsPeerTesting (v4only);
|
||||
return !router->IsHidden () && router->IsPeerTesting (v4);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user