mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Changed the Utils::isOnline() method
This commit is contained in:
parent
75a42ce26c
commit
6e4141f140
@ -42,7 +42,7 @@ class Utils extends Thread{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function isOnline(){
|
public static function isOnline(){
|
||||||
return (checkdnsrr("google.com", "ANY") && checkdnsrr("yahoo.com", "ANY") && checkdnsrr("microsoft.com", "ANY"));
|
return ((@fsockopen("google.com", 80) !== false or @fsockopen("www.linux.org", 80) !== false or @fsockopen("www.php.net", 80) !== false) ? true:false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getIP(){
|
public static function getIP(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user