diff options
author | Andre Arko <andre@arko.net> | 2011-11-13 10:20:55 -1000 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-11-13 10:20:55 -1000 |
commit | 2d063c6269a546c8bab4b36c027246f582bfaa13 (patch) | |
tree | 7f9d655c91427d8337eae42d8823bd509f80eac3 /actionpack/lib/action_dispatch | |
parent | 2189bff732490aa842c88f1691993520fa1eb9ab (diff) | |
download | rails-2d063c6269a546c8bab4b36c027246f582bfaa13.tar.gz rails-2d063c6269a546c8bab4b36c027246f582bfaa13.tar.bz2 rails-2d063c6269a546c8bab4b36c027246f582bfaa13.zip |
turns out the tests expect remote_addrs.first
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/remote_ip.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/remote_ip.rb b/actionpack/lib/action_dispatch/middleware/remote_ip.rb index 3208256d56..5f81b639ae 100644 --- a/actionpack/lib/action_dispatch/middleware/remote_ip.rb +++ b/actionpack/lib/action_dispatch/middleware/remote_ip.rb @@ -55,7 +55,7 @@ module ActionDispatch "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 |