Rack::Request:Class undefined method error

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?

https://github.com/rack/rack/commit/906c8c04a049de14042f289ffe46ed45978f2e9b#diff-345b5336fcb3ce47a50decd2176d79e8

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

2 Likes