new(app, check_ip_spoofing = true, custom_proxies = nil)
Class Public methods
Create a new RemoteIp middleware instance.
The check_ip_spoofing option is on by default. When on, an
exception is raised if it looks like the client is trying to lie about its
own IP address. It makes sense to turn off this check on sites aimed at
non-IP clients (like WAP devices), or behind proxies that set headers in an
incorrect or confusing way (like AWS ELB).
The custom_proxies argument can take a r