mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-05-25 01:35:31 +00:00
don't communicate with low bandwidth routers of version < 0.9.58
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user