    # File lib/rack/request.rb, line 348
        def ip
          remote_addrs = split_ip_addresses(@env['REMOTE_ADDR'])
          remote_addrs = reject_trusted_ip_addresses(remote_addrs)

          return remote_addrs.first if remote_addrs.any?

          forwarded_ips = split_ip_addresses(@env['HTTP_X_FORWARDED_FOR'])

          return reject_trusted_ip_addresses(forwarded_ips).last || @env["REMOTE_ADDR"]
        end