mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Added new IP site
This commit is contained in:
parent
f476cf6943
commit
c77a3c2f87
@ -60,11 +60,16 @@ class Utils extends Thread{
|
|||||||
$ip = Utils::curl_get("http://checkmyip.org/");
|
$ip = Utils::curl_get("http://checkmyip.org/");
|
||||||
if(preg_match('#Your IP address is ([0-9a-fA-F\:\.]*)#', $ip, $matches) > 0){
|
if(preg_match('#Your IP address is ([0-9a-fA-F\:\.]*)#', $ip, $matches) > 0){
|
||||||
return $matches[1];
|
return $matches[1];
|
||||||
|
}else{
|
||||||
|
$ip = trim(Utils::curl_get("http://ifconfig.me/ip"));
|
||||||
|
if($ip != ""){
|
||||||
|
return $ip;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user