use remote_ip
This commit is contained in:
parent
cb064e8acf
commit
f1a545aea5
|
@ -41,7 +41,7 @@ class Ajax::QuestionController < AjaxController
|
|||
target_user_id: params[:rcpt],
|
||||
content: params[:question],
|
||||
anonymous: params[:anonymousQuestion],
|
||||
author_identifier: AnonymousBlock.get_identifier(request.ip)
|
||||
author_identifier: AnonymousBlock.get_identifier(request.remote_ip)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -60,7 +60,7 @@ class ApplicationController < ActionController::Base
|
|||
if current_user.present?
|
||||
Sentry.set_user({ id: current_user.id })
|
||||
else
|
||||
Sentry.set_user({ ip_address: request.ip })
|
||||
Sentry.set_user({ ip_address: request.remote_ip })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue