mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
peer test for ipv6
This commit is contained in:
parent
34eee2fc26
commit
9e050d1a23
9 changed files with 82 additions and 62 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue