mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Changed the Utils::isOnline() method
This commit is contained in:
parent
75a42ce26c
commit
6e4141f140
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class Utils extends Thread{
|
|||
}
|
||||
|
||||
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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue