From 5614da2943c6c39639f4269a1b9266fcdf7f3550 Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Fri, 1 Apr 2022 02:00:39 +0000 Subject: [PATCH] disable IP rate limiting for 127.0.0.2 --- config/initializers/rack_attack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb index 745eb5d3b..57b7f6675 100644 --- a/config/initializers/rack_attack.rb +++ b/config/initializers/rack_attack.rb @@ -39,7 +39,7 @@ class Rack::Attack end 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 Rack::Attack.blocklist('deny from blocklist') do |req|