diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index 61dda72e..1f3a1374 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -107,7 +107,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController "serverKey" => ENV.fetch('GAB_CAPTCHA_SECRET_KEY', ''), "value" => typedChallenge, "username" => username, - "ip" => request.env['REMOTE_ADDR'] + "ip" => request.headers['CF-Real-IP'] }).perform do |res| body = JSON.parse(res.body_with_limit) result = !!body["success"]