diff --git a/getIP.php b/getIP.php index 9511bdf..3fc781f 100644 --- a/getIP.php +++ b/getIP.php @@ -10,6 +10,7 @@ } else { $ip=$_SERVER['REMOTE_ADDR']; } + $ip=preg_replace("/^::ffff:/", "", $ip); $isp=""; if(isset($_GET["isp"])){ $json = file_get_contents("https://ipinfo.io/".$ip."/json");