mirror of
https://github.com/librespeed/speedtest.git
synced 2026-08-27 03:46:58 +00:00
Remove prefix on IPv6-mapped IPv4 (#109)
This commit is contained in:
parent
a883adbbe7
commit
d9b551c5c8
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue