diff --git a/helpers/helpers.php b/helpers/helpers.php index a2a1bd7..d325e3b 100644 --- a/helpers/helpers.php +++ b/helpers/helpers.php @@ -112,7 +112,8 @@ if (!function_exists('get_device_type')) { $deviceInfo['platform'] = 'Unknown'; } - $deviceInfo['ip'] = get_client_ip(); +// $deviceInfo['ip'] = get_client_ip(); + $deviceInfo['ip'] = $_SERVER['HTTP_X_FORWARDED_FOR']?? '127.0.0.1'; // $deviceInfo['ip_address'] = cc_get_ip_lookup(); return $deviceInfo;