mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
try to connect to introducer through any available address
This commit is contained in:
parent
6caec6b551
commit
457b64f92d
3 changed files with 29 additions and 5 deletions
|
@ -1022,9 +1022,14 @@ 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 & (v4 ? (eNTCP2V4 | eSSU2V4) : (eNTCP2V6 | eSSU2V6));
|
||||
return IsPublishedOn (v4 ? (eNTCP2V4 | eSSU2V4) : (eNTCP2V6 | eSSU2V6));
|
||||
}
|
||||
|
||||
bool RouterInfo::IsPublishedOn (CompatibleTransports transports) const
|
||||
{
|
||||
return m_PublishedTransports & transports;
|
||||
}
|
||||
|
||||
bool RouterInfo::IsNAT2NATOnly (const RouterInfo& other) const
|
||||
{
|
||||
return !(m_PublishedTransports & other.m_SupportedTransports) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue