I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects

Router: allow direct lookups to non-floodfills

Closed idk requested to merge idk/i2p.i2p:i2p.i2p.2.4.0-enable-direct-lookup-replies into master
1 unresolved thread
1 file
+ 1
12
Compare changes
  • Side-by-side
  • Inline
@@ -72,19 +72,8 @@ public class FloodfillDatabaseLookupMessageHandler implements HandlerJobBuilder
_context.statManager().addRateData("netDb.lookupsDroppedDueToPriorBan", 1);
return null;
}
boolean ourRI = dlm.getSearchKey() != null && dlm.getSearchKey().equals(_context.routerHash());
if (!_context.netDb().floodfillEnabled() && (dlm.getReplyTunnel() == null && !ourRI)) {
if (_log.shouldLog(Log.WARN))
_log.warn("[dbid: " + _facade._dbid
+ "] Dropping " + dlm.getSearchType()
+ " lookup request for " + dlm.getSearchKey()
+ " (we are not a floodfill), reply was to: "
+ dlm.getFrom() + " tunnel: " + dlm.getReplyTunnel());
_context.statManager().addRateData("netDb.nonFFLookupsDropped", 1);
return null;
}
if (!_facade.shouldThrottleLookup(dlm.getFrom(), dlm.getReplyTunnel())
|| _context.routerHash().equals(dlm.getFrom())) {
|| _context.routerHash().equals(dlm.getSearchKey())) {
Job j = new HandleFloodfillDatabaseLookupMessageJob(_context, dlm, from, fromHash, _msgIDBloomXor);
// if (false) {
// // might as well inline it, all the heavy lifting is queued up in later jobs,
Loading