FIX: Fix options given to per-minute rate limiter
Previously the options for the per-minute and per-10-second rate limiters were the same.
This commit is contained in:
parent
57db3c1fbe
commit
563253e9ed
|
@ -247,8 +247,8 @@ class Middleware::RequestTracker
|
||||||
limiter60 = RateLimiter.new(
|
limiter60 = RateLimiter.new(
|
||||||
nil,
|
nil,
|
||||||
"global_ip_limit_60_#{ip}",
|
"global_ip_limit_60_#{ip}",
|
||||||
GlobalSetting.max_reqs_per_ip_per_10_seconds,
|
GlobalSetting.max_reqs_per_ip_per_minute,
|
||||||
10,
|
60,
|
||||||
global: true
|
global: true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue