diff --git a/otoroshi/app/next/proxy/engine.scala b/otoroshi/app/next/proxy/engine.scala index 4d5195659..55a844a2d 100644 --- a/otoroshi/app/next/proxy/engine.scala +++ b/otoroshi/app/next/proxy/engine.scala @@ -2019,14 +2019,11 @@ class ProxyEngine() extends RequestHandler { val (within, secCalls, maybeQuota) = r // println(s"maybe quota - $maybeQuota") val quota = maybeQuota.getOrElse(globalConfig.perIpThrottlingQuota) - println(s"[engine] secCalls $secCalls - perIpThrottlingQuota $quota") // if (secCalls > (quota * 10L)) { if (secCalls > quota) { - println("4") errorResult(Results.TooManyRequests, "[IP] You performed too much requests", "errors.too.much.requests") } else { if (!within) { - println("3") errorResult(Results.TooManyRequests, "[GLOBAL] You performed too much requests", "errors.too.much.requests") } else if (globalConfig.ipFiltering.notMatchesWhitelist(remoteAddress)) { errorResult(