mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
drop updated routers from future
This commit is contained in:
parent
c5cab05a6b
commit
5cf1961fa4
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013-2023, The PurpleI2P Project
|
* Copyright (c) 2013-2024, The PurpleI2P Project
|
||||||
*
|
*
|
||||||
* This file is part of Purple i2pd project and licensed under BSD3
|
* This file is part of Purple i2pd project and licensed under BSD3
|
||||||
*
|
*
|
||||||
@ -247,9 +247,10 @@ namespace data
|
|||||||
m_Requests.RequestComplete (ident, r);
|
m_Requests.RequestComplete (ident, r);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
if (r->IsUnreachable ())
|
if (r->IsUnreachable () ||
|
||||||
|
i2p::util::GetMillisecondsSinceEpoch () + NETDB_EXPIRATION_TIMEOUT_THRESHOLD*1000LL < r->GetTimestamp ())
|
||||||
{
|
{
|
||||||
// delete router as invalid after update
|
// delete router as invalid or from future after update
|
||||||
m_RouterInfos.erase (ident);
|
m_RouterInfos.erase (ident);
|
||||||
if (wasFloodfill)
|
if (wasFloodfill)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user