Fix a typo

This commit is contained in:
Fedor A. Fetisov 2017-05-24 16:52:30 +03:00
parent d8a63bc2cd
commit 35bbb22c56

View File

@ -580,7 +580,7 @@ function get_remote_host()
$has_proxy = isset($_SERVER['HTTP_X_FORWARDED_FOR'])
&& $_SERVER['HTTP_X_FORWARDED_FOR'] != $_SERVER['REMOTE_ADDR'];
if ($has_proxy) {
$ips = explode(' ', $_SERVER['HTTP_X_FORWARDED_FOR'], 2);
$ips = explode(', ', $_SERVER['HTTP_X_FORWARDED_FOR'], 2);
$ext_addr = (count($ips) > 1)
? $ips[0] . ' (' . $_SERVER['HTTP_X_FORWARDED_FOR'] . ')'
: $ips[0];