method

remote_addrs

rails latest stable - Class: ActionDispatch::RemoteIp::RemoteIpGetter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

remote_addrs()
public

No documentation available.

# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 12
      def remote_addrs
        @remote_addrs ||= begin
          list = @env['REMOTE_ADDR'] ? @env['REMOTE_ADDR'].split(/[,\s]+/) : []
          list.reject { |addr| addr =~ @trusted_proxies }
        end
      end