mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
the object itself isn't the IP, #to_s is the IP
This commit is contained in:
@@ -157,7 +157,7 @@ module ActionDispatch
|
||||
|
||||
# Originating IP address, usually set by the RemoteIp middleware.
|
||||
def remote_ip
|
||||
@remote_ip ||= @env["action_dispatch.remote_ip"] || ip
|
||||
@remote_ip ||= (@env["action_dispatch.remote_ip"] || ip).to_s
|
||||
end
|
||||
|
||||
# Returns the unique request id, which is based off either the X-Request-Id header that can
|
||||
|
||||
Reference in New Issue
Block a user