Replaced remote ip to ip for counter #2348

This commit is contained in:
Priit Tark 2015-07-21 13:11:19 +03:00
parent c347913732
commit a7807eb288

View file

@ -328,6 +328,6 @@ class EppController < ApplicationController
def iptables_counter_update
return if ENV['iptables_counter_enabled'].blank? && ENV['iptables_counter_enabled'] != 'true'
return if current_user.blank?
counter_update(current_user.registrar_code, request.remote_ip)
counter_update(current_user.registrar_code, request.ip)
end
end