mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Fix copy on safelist description
This commit is contained in:
parent
3ed014d45a
commit
711ba9bf99
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ Rack::Attack.safelist_ip("5.6.7.0/24")
|
|||
|
||||
#### `safelist(name, &block)`
|
||||
|
||||
Name your custom safelist and make your ruby-block argument return a truthy value if you want the request to be blocked, and falsy otherwise.
|
||||
Name your custom safelist and make your ruby-block argument return a truthy value if you want the request to be allowed, and falsy otherwise.
|
||||
|
||||
The request object is a [Rack::Request](http://www.rubydoc.info/gems/rack/Rack/Request).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue