mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 06:32:32 +00:00
drop build request with bad flags
This commit is contained in:
1 parent
67f73d7198
commit
d173b79949
1 file changed
+6
@@ -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