From 3e41dbb41a02cb4cc66fbd74ed183c6e411e7684 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 13 Jul 2021 01:29:10 +0700 Subject: [PATCH] Update version.php --- src/status/version.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/status/version.php b/src/status/version.php index cac0854..dae0e09 100644 --- a/src/status/version.php +++ b/src/status/version.php @@ -14,11 +14,9 @@ 'tar' => 'tar --version', 'zip' => 'zip --version', 'git' => 'git --version', + 'ssh' => 'ssh -V', 'openssl' => 'openssl version', // services - 'named' => 'named -v', - 'iptables' => 'iptables --version', - 'proftpd' => 'proftpd -v', 'nginx' => 'nginx -v', 'mysql' => 'mysql -V', 'psql' => 'psql -V', @@ -46,7 +44,7 @@ 'g++' => 'g++ --version', ]; foreach ($programs as $key => $value) { - preg_match('/[\d.]+\w*/', shell_exec($value), $match); + preg_match('/[\d.]+/', shell_exec($value), $match); $programs[$key] = $match[0]; } header('content-type: application/json');