Browse Source

Add rule: maxPerMinute==0 signifies a forbidden function

master
digital dreamer 10 years ago
parent
commit
7a049f2a58
  1. 2
      twister-proxy.js

2
twister-proxy.js

@ -139,7 +139,7 @@ app.post("/", function(request, response) @@ -139,7 +139,7 @@ app.post("/", function(request, response)
invalidRequestCounter++;
return;
}
if(maxCallsPerMinute[rpcMethod]===undefined)
if(maxCallsPerMinute[rpcMethod]===undefined || maxCallsPerMinute[rpcMethod]===0)
{
perIPCounter[remoteIP].forbiddenCalls++;
forbiddenCallCounter++;

Loading…
Cancel
Save