Browse Source

fixed IsPublished for ipv6

pull/2059/head
orignal 8 months ago
parent
commit
1f1a3270f7
  1. 2
      libi2pd/RouterInfo.cpp

2
libi2pd/RouterInfo.cpp

@ -998,7 +998,7 @@ namespace data @@ -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

Loading…
Cancel
Save