diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-14 18:34:57 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-14 18:34:57 +0100 |
commit | 40d8290361bff123e0b44defa0f199708b89093b (patch) | |
tree | d975c24a0b1969e2a9cc1ec7709dec2861ebce37 /app/controllers/config_snom_controller.rb | |
parent | 13658ab197777d0b4870bfa51ac4115a9afed845 (diff) |
Adds a new remote_ip_address methode to figure out the remote IP address. #245
Diffstat (limited to 'app/controllers/config_snom_controller.rb')
-rw-r--r-- | app/controllers/config_snom_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/config_snom_controller.rb b/app/controllers/config_snom_controller.rb index ae58ab8..8db1d57 100644 --- a/app/controllers/config_snom_controller.rb +++ b/app/controllers/config_snom_controller.rb @@ -233,8 +233,8 @@ class ConfigSnomController < ApplicationController if ! request.env['HTTP_USER_AGENT'].index('snom') Rails.logger.info "---> User-Agent indicates not a Snom phone (#{request.env['HTTP_USER_AGENT'].inspect})" else - Rails.logger.info "---> Phone #{@mac_address.inspect}, IP address #{request.remote_ip.inspect}" - @phone.update_attributes({ :ip_address => request.remote_ip }) + Rails.logger.info "---> Phone #{@mac_address.inspect}, IP address #{request_remote_ip.inspect}" + @phone.update_attributes({ :ip_address => request_remote_ip }) end @softkeys = Array.new() |