Skip to content

Commit

Permalink
fixed IsPublished for ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 15, 2024
1 parent ffee292 commit 1f1a327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/RouterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,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 addresses are not published
return m_PublishedTransports & (eNTCP2V4 | eSSU2V4);
return m_PublishedTransports & (v4 ? (eNTCP2V4 | eSSU2V4) : (eNTCP2V6 | eSSU2V6));
}

bool RouterInfo::IsNAT2NATOnly (const RouterInfo& other) const
Expand Down

0 comments on commit 1f1a327

Please sign in to comment.