Merge pull request #238 from cytopia/fix-bind-version

Fix bind version in intranet
This commit is contained in:
cytopia 2018-04-28 16:27:36 +02:00 committed by GitHub
commit e7206f2e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ class Dns extends BaseClass implements BaseInterface
$output = loadClass('Helper')->exec($cmd);
$version = loadClass('Helper')->egrep('/"[0-9.-]+.*"/', $output);
$version = loadClass('Helper')->egrep('/[0-9.-]+/', $version);
$version = loadClass('Helper')->egrep('/[0-9.-]+[0-9]+/', $version);
// Cache and return
$this->_version = $version ? $version : '';