Skip to content

Commit

Permalink
NetDB: Deny old ANY lookup type to non-ff
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzi2p committed May 1, 2024
1 parent c3730e8 commit e7d5676
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public Job createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash from
_context.statManager().addRateData("netDb.lookupsReceived", 1);

DatabaseLookupMessage dlm = (DatabaseLookupMessage)receivedMessage;
if (dlm.getSearchType() == DatabaseLookupMessage.Type.EXPL &&
DatabaseLookupMessage.Type type = dlm.getSearchType();
if ((type == DatabaseLookupMessage.Type.EXPL || type == DatabaseLookupMessage.Type.ANY) &&
!_context.netDb().floodfillEnabled()) {
if (_log.shouldLog(Log.WARN))
_log.warn("[dbid: " + _facade
Expand Down

0 comments on commit e7d5676

Please sign in to comment.