Rack::Request:Class undefined method error


#1

Continuing the discussion from IP addresses are not correct in my installation:

I am currently getting an error from discourse when I try to rebuild on my staging (I use it for dev but its installed using the production install guide) instance. I’ve narrowed it down to a plugin I’m currently working on.

The source code for the plugin is publicly available here and the error message is available here.

How might I go about loading rack in a manner that allows me to set Rack::Request.ip_filter = lambda { |ip| false } and override the rack default?


(Sam Saffron) #2

Looks like you need to monkey patch trusted proxy till we get this rack commit