consider all addresses non published for U and H routers

This commit is contained in:
orignal 2023-07-15 17:11:56 -04:00
parent 5e97b54d1b
commit 8e63f8f333

View File

@ -995,6 +995,7 @@ namespace data
bool RouterInfo::IsPublished (bool v4) const
{
if (m_Caps & (eUnreachable | eHidden)) return false; // if router sets U or H we assume that all addreses are not published
auto addr = GetAddresses ();
if (v4)
return ((*addr)[eNTCP2V4Idx] && ((*addr)[eNTCP2V4Idx])->published) ||