forked from I2P_Developers/i2p.i2p
drop build request with bad flags
This commit is contained in:
@@ -547,6 +547,12 @@ class BuildHandler implements Runnable {
|
||||
boolean isInGW = req.readIsInboundGateway();
|
||||
boolean isOutEnd = req.readIsOutboundEndpoint();
|
||||
|
||||
if (isInGW && isOutEnd) {
|
||||
_context.statManager().addRateData("tunnel.rejectHostile", 1);
|
||||
_log.error("Dropping build request, IBGW+OBEP");
|
||||
return;
|
||||
}
|
||||
|
||||
// Loop checks
|
||||
if ((!isOutEnd) && _context.routerHash().equals(nextPeer)) {
|
||||
_context.statManager().addRateData("tunnel.rejectHostile", 1);
|
||||
|
Reference in New Issue
Block a user