Skip to content

Commit

Permalink
floodfill must have published ipv6 if no published ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Jul 12, 2024
1 parent 8440633 commit 45221da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libi2pd/RouterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,10 @@ namespace data

bool RouterInfo::IsEligibleFloodfill () const
{
// floodfill must have reachable ipv4, >= 0.9.59 and not DSA
return m_Version >= NETDB_MIN_FLOODFILL_VERSION && IsReachableBy (eNTCP2V4 | eSSU2V4) &&
// floodfill must have published ipv4 or reachable ipv4 and published ipv6
// >= 0.9.59 and not DSA
return m_Version >= NETDB_MIN_FLOODFILL_VERSION && (IsPublished (true) ||
(IsReachableBy (eNTCP2V4 | eSSU2V4) && IsPublished (false))) &&
GetIdentity ()->GetSigningKeyType () != SIGNING_KEY_TYPE_DSA_SHA1;
}

Expand Down

0 comments on commit 45221da

Please sign in to comment.