# Rack::Request:Class undefined method error

**URL:** https://meta.discourse.org/t/rack-class-undefined-method-error/105458
**Category:** Development
**Created:** [January 2, 2019, 9:49am UTC](https://meta.discourse.org/t/rack-class-undefined-method-error/105458 "2019-01-02T09:49:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sau226](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sau226/32/302324_2.png) [@sau226](https://meta.discourse.org/u/sau226)
#### Post date: [January 2, 2019, 9:49am UTC](https://meta.discourse.org/t/rack-class-undefined-method-error/105458/1 "2019-01-02T09:49:13Z")

</div>

Continuing the discussion from [IP addresses are not correct in my installation](https://meta.discourse.org/t/ip-addresses-are-not-correct-in-my-installation/105366/7):

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](https://github.com/sau226dev/discourse-plugin-internalip) and the error message is available [here](https://pastebin.com/bsszSMRU).

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?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 2, 2019, 7:43pm UTC](https://meta.discourse.org/t/rack-class-undefined-method-error/105458/2 "2019-01-02T19:43:00Z")

</div>

[https://github.com/rack/rack/commit/906c8c04a049de14042f289ffe46ed45978f2e9b#diff-345b5336fcb3ce47a50decd2176d79e8](https://github.com/rack/rack/commit/906c8c04a049de14042f289ffe46ed45978f2e9b#diff-345b5336fcb3ce47a50decd2176d79e8)

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