Browse Source

don't innsert back unreachable router

pull/1872/head
orignal 2 years ago
parent
commit
4930157e93
  1. 2
      libi2pd/NetDb.cpp

2
libi2pd/NetDb.cpp

@ -295,7 +295,7 @@ namespace data @@ -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;

Loading…
Cancel
Save