Flowdock
method

ips_from

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: GetIp
ips_from(header, allow_proxies = false) protected

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 74
      def ips_from(header, allow_proxies = false)
        ips = @env[header] ? @env[header].strip.split(/[,\s]+/) : []
        allow_proxies ? ips : ips.reject{|ip| ip =~ @middleware.proxies }
      end
Register or log in to add new notes.