mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 10:42:29 +00:00
don't innsert back unreachable router
This commit is contained in:
1 parent
d30d1e8a7d
commit
4930157e93
1 file changed
+1
-1
+1
-1
@@ -295,7 +295,7 @@ namespace data
|
||||
else
|
||||
{
|
||||
r = std::make_shared<RouterInfo> (buf, len);
|
||||
if (!r->IsUnreachable () && r->HasValidAddresses () &&
|
||||
if (!r->IsUnreachable () && r->HasValidAddresses () && !r->GetProfile ()->IsUnreachable () &&
|
||||
i2p::util::GetMillisecondsSinceEpoch () + NETDB_EXPIRATION_TIMEOUT_THRESHOLD*1000LL > r->GetTimestamp ())
|
||||
{
|
||||
bool inserted = false;
|
||||
|
||||
Reference in new issue
Block a user