instance method
ips_from
Ruby on Rails 8.1.2
Since v3.2.22.5 PrivateSignature
ips_from(header)
No documentation comment.
Parameters
-
headerreq
Source
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 179
def ips_from(header) # :doc:
return [] unless header
# Split the comma-separated list into an array of strings.
header.strip.split(/[,\s]+/)
end
Defined in actionpack/lib/action_dispatch/middleware/remote_ip.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::RemoteIp::GetIp