mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
don't reply with close than us only floodfills for lookup
This commit is contained in:
parent
a21bec0ed8
commit
8439f6dc57
|
@ -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…
Reference in a new issue