Fix #1468 inconsistent use of REMOTE_ADDR vs. RX_CLIENT_IP

This commit is contained in:
Kijin Sung 2020-11-18 00:17:49 +09:00
parent 996ca166e8
commit 2d6a175b19
11 changed files with 24 additions and 32 deletions

View file

@ -335,7 +335,7 @@ class pollController extends poll
$member_srl = $logged_info->member_srl?$logged_info->member_srl:0;
$log_args->member_srl = $member_srl;
$log_args->ipaddress = $_SERVER['REMOTE_ADDR'];
$log_args->ipaddress = \RX_CLIENT_IP;
$output = executeQuery('poll.insertPollLog', $log_args);
if(!$output->toBool())

View file

@ -199,7 +199,7 @@ class pollModel extends poll
}
else
{
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
$args->ipaddress = \RX_CLIENT_IP;
}
$output = executeQuery('poll.getPollLog', $args);
if($output->data->count) return true;