mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-08 03:24:15 +00:00
REL-0.9 Remove return in DNS check
This commit is contained in:
parent
cce2ed885a
commit
c3955ea34e
@ -50,10 +50,6 @@ class Dns extends _Base implements _iBase
|
||||
$cmd = 'dig +time=1 +tries=1 @172.16.238.100 version.bind chaos TXT';
|
||||
exec($cmd, $output, $exit_code);
|
||||
|
||||
if ($exit_code != 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
self::$_available[$hostname] = ($exit_code != 0) ? false : true;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user