Skip to content

Commit

Permalink
consider all addresses non published for U and H routers
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Jul 15, 2023
1 parent 5e97b54 commit 8e63f8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libi2pd/RouterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 8e63f8f

Please sign in to comment.