mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 17:56:16 +08:00
correct regression
This commit is contained in:
parent
2e1454a6e2
commit
4810ce3607
|
@ -275,6 +275,7 @@ class Middleware::RequestTracker
|
||||||
limiter10.performed!
|
limiter10.performed!
|
||||||
type = 60
|
type = 60
|
||||||
limiter60.performed!
|
limiter60.performed!
|
||||||
|
false
|
||||||
rescue RateLimiter::LimitExceeded
|
rescue RateLimiter::LimitExceeded
|
||||||
if warn
|
if warn
|
||||||
Rails.logger.warn("Global IP rate limit exceeded for #{ip}: #{type} second rate limit, uri: #{request.env["REQUEST_URI"]}")
|
Rails.logger.warn("Global IP rate limit exceeded for #{ip}: #{type} second rate limit, uri: #{request.env["REQUEST_URI"]}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user