README: add ipv6 example

Per #151
This commit is contained in:
Aaron Suggs 2015-11-30 10:52:15 -05:00
parent a937df3789
commit b32148e0be

View file

@ -104,7 +104,7 @@ A [Rack::Request](http://www.rubydoc.info/gems/rack/Rack/Request) object is pass
# (blacklist & throttles are skipped)
Rack::Attack.whitelist('allow from localhost') do |req|
# Requests are allowed if the return value is truthy
'127.0.0.1' == req.ip
'127.0.0.1' == req.ip || '::1' == req.ip
end
```