mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03: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);
|
excludedRouters.insert (exclude_ident);
|
||||||
exclude_ident += 32;
|
exclude_ident += 32;
|
||||||
}
|
}
|
||||||
auto closestFloodfills = GetClosestFloodfills (ident, 3, excludedRouters, true);
|
auto closestFloodfills = GetClosestFloodfills (ident, 3, excludedRouters, false);
|
||||||
if (closestFloodfills.empty ())
|
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);
|
replyMsg = CreateDatabaseSearchReply (ident, closestFloodfills);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user