don't communicate with low bandwidth routers of version < 0.9.58

This commit is contained in:
orignal
2026-02-08 10:45:47 -05:00
parent c93cf9bc2f
commit de0c5c042a
4 changed files with 15 additions and 1 deletions
+5
View File
@@ -1227,6 +1227,11 @@ namespace transport
i2p::transport::transports.AddBan (m_RemoteEndpoint.address ());
return false;
}
if (ri->GetVersion () < i2p::data::NETDB_MIN_ALLOWED_VERSION && !ri->IsHighBandwidth ())
{
LogPrint (eLogInfo, "SSU2: Router version ", ri->GetVersion (), " is too old in SessionConfirmed");
return false;
}
if (!m_Address->published)
{
if (ri->HasProfile ())