|
|
|
@ -6775,7 +6775,7 @@ function api_get_real_ip(){ |
|
|
|
|
$ip = trim($_SERVER['REMOTE_ADDR']); |
|
|
|
|
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { |
|
|
|
|
if (preg_match('/,/', $_SERVER['HTTP_X_FORWARDED_FOR'])) { |
|
|
|
|
list($ip1, $ip2) = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); |
|
|
|
|
@list($ip1, $ip2) = @explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); |
|
|
|
|
} else { |
|
|
|
|
$ip1 = $_SERVER['HTTP_X_FORWARDED_FOR']; |
|
|
|
|
} |
|
|
|
|