获取真实ip

This commit is contained in:
2024-12-04 10:25:45 +08:00
parent 3adc13cca8
commit 85b3b5802a

View File

@@ -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;