1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 14:58:21 +09:00

Use request.remote_ip instead of request.ip (#4744)

This commit is contained in:
nullkal 2017-08-30 17:24:30 +09:00 committed by Eugen Rochko
parent e95bdec7c5
commit 39e7a763ff

View File

@ -124,7 +124,7 @@ class User < ApplicationRecord
def activate_session(request) def activate_session(request)
session_activations.activate(session_id: SecureRandom.hex, session_activations.activate(session_id: SecureRandom.hex,
user_agent: request.user_agent, user_agent: request.user_agent,
ip: request.ip).session_id ip: request.remote_ip).session_id
end end
def exclusive_session(id) def exclusive_session(id)