Method: ActionDispatch::RemoteIp::RemoteIpGetter#initialize
- Defined in:
- lib/action_dispatch/middleware/remote_ip.rb
#initialize(env, check_ip_spoofing, trusted_proxies) ⇒ RemoteIpGetter
Returns a new instance of RemoteIpGetter.
6 7 8 9 10 |
# File 'lib/action_dispatch/middleware/remote_ip.rb', line 6 def initialize(env, check_ip_spoofing, trusted_proxies) @env = env @check_ip_spoofing = check_ip_spoofing @trusted_proxies = trusted_proxies end |