mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 19:38:28 +01:00
fix SSU2 introducers selection logic
This commit is contained in:
parent
8b649aaaf8
commit
3cf809e99d
1 changed files with 2 additions and 2 deletions
|
@ -730,8 +730,8 @@ namespace transport
|
||||||
{
|
{
|
||||||
if (s.second->IsEstablished () && (s.second->GetRelayTag () && !s.second->IsOutgoing ()) &&
|
if (s.second->IsEstablished () && (s.second->GetRelayTag () && !s.second->IsOutgoing ()) &&
|
||||||
!excluded.count (s.second->GetRemoteIdentity ()->GetIdentHash ()) &&
|
!excluded.count (s.second->GetRemoteIdentity ()->GetIdentHash ()) &&
|
||||||
((v4 && (s.second->GetRemoteTransports () | i2p::data::RouterInfo::eSSU2V4)) ||
|
((v4 && (s.second->GetRemoteTransports () & i2p::data::RouterInfo::eSSU2V4)) ||
|
||||||
(!v4 && (s.second->GetRemoteTransports () | i2p::data::RouterInfo::eSSU2V6))))
|
(!v4 && (s.second->GetRemoteTransports () & i2p::data::RouterInfo::eSSU2V6))))
|
||||||
ret.push_back (s.second);
|
ret.push_back (s.second);
|
||||||
}
|
}
|
||||||
if ((int)ret.size () > maxNumIntroducers)
|
if ((int)ret.size () > maxNumIntroducers)
|
||||||
|
|
Loading…
Add table
Reference in a new issue