Replaced remote ip to ip for counter #2348

This commit is contained in:
Priit Tark 2015-07-21 13:11:19 +03:00
parent 16a6192c36
commit 9b15e9e7f0

View file

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