mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-19 12:57:52 +00:00
Merge pull request #238 from cytopia/fix-bind-version
Fix bind version in intranet
This commit is contained in:
commit
e7206f2e30
@ -56,7 +56,7 @@ class Dns extends BaseClass implements BaseInterface
|
|||||||
$output = loadClass('Helper')->exec($cmd);
|
$output = loadClass('Helper')->exec($cmd);
|
||||||
|
|
||||||
$version = loadClass('Helper')->egrep('/"[0-9.-]+.*"/', $output);
|
$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
|
// Cache and return
|
||||||
$this->_version = $version ? $version : '';
|
$this->_version = $version ? $version : '';
|
||||||
|
Loading…
Reference in New Issue
Block a user