Browse Source

don't reply with close than us only floodfills for lookup

pull/1941/merge
orignal 8 months ago
parent
commit
8439f6dc57
  1. 4
      libi2pd/NetDb.cpp

4
libi2pd/NetDb.cpp

@ -1138,9 +1138,9 @@ namespace data @@ -1138,9 +1138,9 @@ namespace data
excludedRouters.insert (exclude_ident);
exclude_ident += 32;
}
auto closestFloodfills = GetClosestFloodfills (ident, 3, excludedRouters, true);
auto closestFloodfills = GetClosestFloodfills (ident, 3, excludedRouters, false);
if (closestFloodfills.empty ())
LogPrint (eLogWarning, "NetDb: Requested ", key, " not found, ", numExcluded, " peers excluded");
LogPrint (eLogWarning, "NetDb: No more floodfills for ", key, " found. ", numExcluded, " peers excluded");
replyMsg = CreateDatabaseSearchReply (ident, closestFloodfills);
}
}

Loading…
Cancel
Save