From 85b3b5802a21ad133cae9caf8fb87629e2f6189e Mon Sep 17 00:00:00 2001 From: lq Date: Wed, 4 Dec 2024 10:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=9C=9F=E5=AE=9Eip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/helpers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;