Object
IP addresses that are “trusted proxies” that can be stripped from the comma-delimited list in the X-Forwarded-For header. See also: en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces
# File lib/action_dispatch/middleware/remote_ip.rb, line 18 18: def initialize(app, check_ip_spoofing = true, custom_proxies = nil) 19: @app = app 20: @check_ip = check_ip_spoofing 21: if custom_proxies 22: custom_regexp = Regexp.new(custom_proxies) 23: @proxies = Regexp.union(TRUSTED_PROXIES, custom_regexp) 24: else 25: @proxies = TRUSTED_PROXIES 26: end 27: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.