We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b368c68 commit 5972891Copy full SHA for 5972891
actionpack/lib/action_dispatch/middleware/remote_ip.rb
@@ -159,7 +159,7 @@ def calculate_ip
159
160
# If every single IP option is in the trusted list, return the IP
161
# that's furthest away
162
- ips.detect {|ip| @proxies.none? {|p| p === ip } } || (@proxies.none? {|p| p === remote_addr} && remote_addr) || ips.last || remote_addr
+ ips.detect { |ip| @proxies.none? { |p| p === ip } } || (@proxies.none? { |p| p === remote_addr } && remote_addr) || ips.last || remote_addr
163
end
164
165
# Memoizes the value returned by #calculate_ip and returns it for
0 commit comments