Skip to content

Commit 5972891

Browse files
committed
👮
1 parent b368c68 commit 5972891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/middleware/remote_ip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def calculate_ip
159159

160160
# If every single IP option is in the trusted list, return the IP
161161
# 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
162+
ips.detect { |ip| @proxies.none? { |p| p === ip } } || (@proxies.none? { |p| p === remote_addr } && remote_addr) || ips.last || remote_addr
163163
end
164164

165165
# Memoizes the value returned by #calculate_ip and returns it for

0 commit comments

Comments
 (0)