diff --git a/app/controllers/epp/base_controller.rb b/app/controllers/epp/base_controller.rb index 51561f1ee..e3ac81815 100644 --- a/app/controllers/epp/base_controller.rb +++ b/app/controllers/epp/base_controller.rb @@ -365,6 +365,7 @@ module Epp def iptables_counter_update return if ENV['iptables_counter_enabled'].blank? && ENV['iptables_counter_enabled'] != 'true' + counter_update(current_user.registrar_code, ENV['iptables_server_ip']) end diff --git a/test/integration/epp/base_test.rb b/test/integration/epp/base_test.rb index 2610ddb98..2d19a6fa8 100644 --- a/test/integration/epp/base_test.rb +++ b/test/integration/epp/base_test.rb @@ -109,8 +109,8 @@ class EppBaseTest < EppTestCase XML - post '/epp/command/info', { frame: authentication_enabled_epp_request_xml }, - 'HTTP_COOKIE' => "session=#{session.session_id}" + post '/epp/command/info', params: { frame: authentication_enabled_epp_request_xml }, + headers: { 'HTTP_COOKIE' => "session=#{session.session_id}" } assert_epp_response :authorization_error assert_nil EppSession.find_by(session_id: session.session_id) @@ -137,8 +137,9 @@ class EppBaseTest < EppTestCase XML - post '/epp/command/info', { frame: authentication_enabled_epp_request_xml }, - 'HTTP_COOKIE' => "session=#{session.session_id}" + post '/epp/command/info', params: { frame: authentication_enabled_epp_request_xml }, + headers: { 'HTTP_COOKIE' => "session=#{session.session_id}" } + session.reload assert_epp_response :completed_successfully