Flowdock
method

new

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ActionDispatch::RemoteIp
new(app, check_ip_spoofing = true, custom_proxies = nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 18
    def initialize(app, check_ip_spoofing = true, custom_proxies = nil)
      @app = app
      @check_ip = check_ip_spoofing
      if custom_proxies
        custom_regexp = Regexp.new(custom_proxies)
        @proxies = Regexp.union(TRUSTED_PROXIES, custom_regexp)
      else
        @proxies = TRUSTED_PROXIES
      end
    end
Register or log in to add new notes.