获取真实ip
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user