Fix to correctly fetch "PPTP VPN Client" version as --help returns different output

https://github.com/webmin/webmin/issues/2567
This commit is contained in:
Ilia Ross
2025-10-04 12:35:26 +03:00
parent 78a3ab924d
commit 18c12c7f8b

View File

@@ -258,7 +258,7 @@ return 0;
# get_pppd_version(&out)
sub get_pppd_version
{
local $out = `pppd --help 2>&1`;
local $out = `pppd --version 2>&1`;
${$_[0]} = $out;
return $out =~ /version\s+(\S+)/i ? $1 : undef;
}