mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-25 14:47:43 +00:00
Typo in comment
This commit is contained in:
parent
dc308add10
commit
98b0ab866d
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ module Rack
|
||||||
'allow2ban'
|
'allow2ban'
|
||||||
end
|
end
|
||||||
|
|
||||||
# everything the same here except we return only return true
|
# everything is the same here except we only return true
|
||||||
# (blocking the request) if they have tripped the limit.
|
# (blocking the request) if they have tripped the limit.
|
||||||
def fail!(discriminator, bantime, findtime, maxretry)
|
def fail!(discriminator, bantime, findtime, maxretry)
|
||||||
count = cache.count("#{key_prefix}:count:#{discriminator}", findtime)
|
count = cache.count("#{key_prefix}:count:#{discriminator}", findtime)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue