method
ips_from
v8.1.1 -
Show latest stable
- Class:
ActionDispatch::RemoteIp
ips_from(header)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 178
def ips_from(header) # :doc:
return [] unless header
# Split the comma-separated list into an array of strings.
header.strip.split(/[,\s]+/)
end