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

Skip to content
Snippets Groups Projects
Commit ac902bad authored by zzz's avatar zzz
Browse files

log tweak to hide i2pd badness

parent f3d573ca
No related branches found
No related tags found
No related merge requests found
...@@ -661,8 +661,10 @@ class BuildHandler implements Runnable { ...@@ -661,8 +661,10 @@ class BuildHandler implements Runnable {
// Previous and next hop the same? Don't help somebody be evil. Drop it without a reply. // Previous and next hop the same? Don't help somebody be evil. Drop it without a reply.
// A-B-C-A is not preventable // A-B-C-A is not preventable
if (nextPeer.equals(from)) { if (nextPeer.equals(from)) {
// i2pd does this
_context.statManager().addRateData("tunnel.rejectHostile", 1); _context.statManager().addRateData("tunnel.rejectHostile", 1);
_log.error("Dropping build request with the same previous and next hop"); if (_log.shouldLog(Log.WARN))
_log.warn("Dropping build request with the same previous and next hop");
return; return;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment