mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-07 11:54:16 +00:00
fixed IsPublished for ipv6
This commit is contained in:
parent
ffee29272f
commit
1f1a3270f7
@ -998,7 +998,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 addresses are not published
|
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
|
bool RouterInfo::IsNAT2NATOnly (const RouterInfo& other) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user