mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
commit
26124874e2
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