Browse Source

consider all addresses non published for U and H routers

pull/1951/head
orignal 1 year ago
parent
commit
8e63f8f333
  1. 1
      libi2pd/RouterInfo.cpp

1
libi2pd/RouterInfo.cpp

@ -995,6 +995,7 @@ namespace data
bool RouterInfo::IsPublished (bool v4) const 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 (); auto addr = GetAddresses ();
if (v4) if (v4)
return ((*addr)[eNTCP2V4Idx] && ((*addr)[eNTCP2V4Idx])->published) || return ((*addr)[eNTCP2V4Idx] && ((*addr)[eNTCP2V4Idx])->published) ||

Loading…
Cancel
Save