Browse Source

don't reply with unreachable router

pull/1879/head
orignal 2 years ago
parent
commit
532a29b0c4
  1. 2
      libi2pd/NetDb.cpp

2
libi2pd/NetDb.cpp

@ -1040,7 +1040,7 @@ namespace data
lookupType == DATABASE_LOOKUP_TYPE_NORMAL_LOOKUP) lookupType == DATABASE_LOOKUP_TYPE_NORMAL_LOOKUP)
{ {
auto router = FindRouter (ident); auto router = FindRouter (ident);
if (router) if (router && !router->IsUnreachable ())
{ {
LogPrint (eLogDebug, "NetDb: Requested RouterInfo ", key, " found"); LogPrint (eLogDebug, "NetDb: Requested RouterInfo ", key, " found");
PopulateRouterInfoBuffer (router); PopulateRouterInfoBuffer (router);

Loading…
Cancel
Save