diff options
-rw-r--r-- | en/downloads/debug/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/en/downloads/debug/index.php b/en/downloads/debug/index.php index 35c8e47f0..0edc7a895 100644 --- a/en/downloads/debug/index.php +++ b/en/downloads/debug/index.php @@ -17,6 +17,10 @@ if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) else $ips['ip'] = $_SERVER['REMOTE_ADDR']; +$ips = array( + 'ip' => '2a01:e35:8a03:9990:223:dfff:fe7e:e7f0' +); + echo '<html><body>'; echo '<h3>IP addresses</h3>'; @@ -58,7 +62,7 @@ require realpath(__DIR__ . '/../../../lib/mga_geoip.php'); echo '<ul>'; foreach ($ips as $label => $ip) { echo '<li>', $label, ': ', $ip, ' => '; - $country = mga_geoip_country_by_ip($ip); + $country = mga_geoip_country_by_ip($ip, false); echo $country, ', '; $C = mga_geoip_continent_by_country($country); echo $C, '</li>'; |