Merge pull request #1774 from simonvetter/openssl

fix SSU2 introducers selection logic
This commit is contained in:
orignal 2022-07-11 09:48:21 -04:00 committed by GitHub
commit efbaf02016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -730,8 +730,8 @@ namespace transport
{
if (s.second->IsEstablished () && (s.second->GetRelayTag () && !s.second->IsOutgoing ()) &&
!excluded.count (s.second->GetRemoteIdentity ()->GetIdentHash ()) &&
((v4 && (s.second->GetRemoteTransports () | i2p::data::RouterInfo::eSSU2V4)) ||
(!v4 && (s.second->GetRemoteTransports () | i2p::data::RouterInfo::eSSU2V6))))
((v4 && (s.second->GetRemoteTransports () & i2p::data::RouterInfo::eSSU2V4)) ||
(!v4 && (s.second->GetRemoteTransports () & i2p::data::RouterInfo::eSSU2V6))))
ret.push_back (s.second);
}
if ((int)ret.size () > maxNumIntroducers)