Added new IP site

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-26 20:57:13 +01:00
parent f476cf6943
commit c77a3c2f87

View File

@ -60,11 +60,16 @@ class Utils extends Thread{
$ip = Utils::curl_get("http://checkmyip.org/");
if(preg_match('#Your IP address is ([0-9a-fA-F\:\.]*)#', $ip, $matches) > 0){
return $matches[1];
}else{
$ip = trim(Utils::curl_get("http://ifconfig.me/ip"));
if($ip != ""){
return $ip;
}else{
return false;
}
}
}
}
}