mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
consider all addresses non published for U and H routers
This commit is contained in:
parent
5e97b54d1b
commit
8e63f8f333
@ -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…
Reference in New Issue
Block a user