disable IP rate limiting for 127.0.0.2

This commit is contained in:
Kay Faraday 2022-04-01 02:00:39 +00:00
parent 7b12272a5b
commit 5614da2943
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Rack::Attack
end end
Rack::Attack.safelist('allow from localhost') do |req| Rack::Attack.safelist('allow from localhost') do |req|
req.remote_ip == '127.0.0.1' || req.remote_ip == '::1' req.remote_ip == '127.0.0.1' || req.remote_ip == '127.0.0.2' || req.remote_ip == '::1'
end end
Rack::Attack.blocklist('deny from blocklist') do |req| Rack::Attack.blocklist('deny from blocklist') do |req|