detect our ipv6 address

This commit is contained in:
orignal 2019-05-23 15:59:44 -04:00
parent af33df3004
commit 354c9187db
5 changed files with 30 additions and 0 deletions

View file

@ -1076,6 +1076,15 @@ namespace data
});
}
std::shared_ptr<const RouterInfo> NetDb::GetRandomSSUV6Router () const
{
return GetRandomRouter (
[](std::shared_ptr<const RouterInfo> router)->bool
{
return !router->IsHidden () && router->IsSSUV6 ();
});
}
std::shared_ptr<const RouterInfo> NetDb::GetRandomIntroducer () const
{
return GetRandomRouter (