forked from I2P_Developers/i2p.i2p
change injection errors to warns
This commit is contained in:
@@ -65,8 +65,8 @@ class HopProcessor {
|
||||
_config.setReceiveFrom(prev);
|
||||
} else if (!_config.getReceiveFrom().equals(prev)) {
|
||||
// shouldn't happen now that we have good dup ID detection in BuildHandler
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Attempted mid-tunnel injection from " + prev
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Attempted mid-tunnel injection from " + prev
|
||||
+ ", expected " + _config.getReceiveFrom());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -48,8 +48,8 @@ class InboundEndpointProcessor {
|
||||
Hash last = _config.getPeer(_config.getLength()-2);
|
||||
if (!last.equals(prev)) {
|
||||
// shouldn't happen now that we have good dup ID detection in BuildHandler
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Attempted IBEP injection from " + prev
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Attempted IBEP injection from " + prev
|
||||
+ ", expected " + last);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user