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
+6
View File
@@ -1077,6 +1077,12 @@ namespace transport
Terminate ();
return;
}
if (ri1->GetVersion () < i2p::data::NETDB_MIN_ALLOWED_VERSION && !ri1->IsHighBandwidth ())
{
LogPrint (eLogInfo, "NTCP2: Router version ", ri1->GetVersion (), " is too old in SessionConfirmed");
SendTerminationAndTerminate (eNTCP2Banned);
return;
}
// TODO: process options block
// ready to communicate