Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

turns out the tests expect remote_addrs.first

  • Loading branch information...
commit 2d063c6269a546c8bab4b36c027246f582bfaa13 1 parent 2189bff
André Arko indirect authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_dispatch/middleware/remote_ip.rb
2  actionpack/lib/action_dispatch/middleware/remote_ip.rb
View
@@ -55,7 +55,7 @@ def to_s
"HTTP_X_FORWARDED_FOR=#{@env['HTTP_X_FORWARDED_FOR'].inspect}"
end
- client_ip || forwarded_ips.last || remote_addrs.last
+ client_ip || forwarded_ips.last || remote_addrs.first
end
protected
Please sign in to comment.
Something went wrong with that request. Please try again.