check min peer test version for Charlie

This commit is contained in:
orignal
2026-02-07 21:19:35 -05:00
parent 1a5847c51f
commit c93cf9bc2f
2 changed files with 11 additions and 8 deletions
+2
View File
@@ -615,6 +615,7 @@ namespace transport
while (it != m_Sessions.end ())
{
if (it->second->IsEstablished () && (it->second->GetRemotePeerTestTransports () & remoteTransports) &&
it->second->GetRemoteVersion () >= i2p::data::NETDB_MIN_PEER_TEST_VERSION &&
it->second->GetRemoteIdentity ()->GetIdentHash () != excluded)
return it->second;
it++;
@@ -624,6 +625,7 @@ namespace transport
while (it != m_Sessions.end () && ind)
{
if (it->second->IsEstablished () && (it->second->GetRemotePeerTestTransports () & remoteTransports) &&
it->second->GetRemoteVersion () >= i2p::data::NETDB_MIN_PEER_TEST_VERSION &&
it->second->GetRemoteIdentity ()->GetIdentHash () != excluded)
return it->second;
it++; ind--;