mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-07-28 12:19:22 +00:00
remove routers with older version from NetDb
This commit is contained in:
@@ -699,6 +699,8 @@ namespace data
|
||||
// find & mark expired routers
|
||||
if (!r->GetCompatibleTransports (true)) // non reachable by any transport
|
||||
r->SetUnreachable (true);
|
||||
else if (r->GetVersion () < NETDB_MIN_ALLOWED_VERSION && !r->IsHighBandwidth ()) // too old
|
||||
r->SetUnreachable (true);
|
||||
else if (ts + NETDB_EXPIRATION_TIMEOUT_THRESHOLD*1000LL < r->GetTimestamp ())
|
||||
{
|
||||
LogPrint (eLogWarning, "NetDb: RouterInfo is from future for ", (r->GetTimestamp () - ts)/1000LL, " seconds");
|
||||
|
||||
Reference in New Issue
Block a user