mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
commit
e25ab0a313
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ Rack::Attack.track("special_agent") do |req|
|
|||
end
|
||||
|
||||
# Supports optional limit and period, triggers the notification only when the limit is reached.
|
||||
Rack::Attack.track("special_agent", :limit 6, :period => 60.seconds) do |req|
|
||||
Rack::Attack.track("special_agent", :limit => 6, :period => 60.seconds) do |req|
|
||||
req.user_agent == "SpecialAgent"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue