Browse files

turns out the tests expect remote_addrs.first

  • Loading branch information...
1 parent 2189bff commit 2d063c6269a546c8bab4b36c027246f582bfaa13 @indirect indirect committed Nov 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/remote_ip.rb
View
2 actionpack/lib/action_dispatch/middleware/remote_ip.rb
@@ -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

0 comments on commit 2d063c6

Please sign in to comment.