Fix bind version in intranet

This commit is contained in:
cytopia 2018-04-28 15:21:09 +02:00
parent e5ec9c5e44
commit babefe4160
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

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 : '';