mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
the object itself isn't the IP, #to_s is the IP
This commit is contained in:
parent
5621abd569
commit
a9044d0117
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue