mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
Merge pull request #1045 from Retrospring/fix-real-ip
This commit is contained in:
commit
90335140c7
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue