fix error when ratelimiting

This commit is contained in:
Mystikfluu 2022-09-15 20:07:52 +02:00
parent ed7fcc52bf
commit 5e3c8c508f

View File

@ -295,7 +295,6 @@ function increaseIndividualCall(url, req) {
}
INDIVIDUAL_CALLS[ip][url]++;
if (INDIVIDUAL_CALLS[ip][url] >= conf["max"]) {
res.status(429)
console.log(5, "ratelimiting someone on", url, INDIVIDUAL_CALLS[ip][url], conf["max"]);
return false;
}