mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
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:
@@ -258,7 +258,7 @@ return 0;
|
|||||||
# get_pppd_version(&out)
|
# get_pppd_version(&out)
|
||||||
sub get_pppd_version
|
sub get_pppd_version
|
||||||
{
|
{
|
||||||
local $out = `pppd --help 2>&1`;
|
local $out = `pppd --version 2>&1`;
|
||||||
${$_[0]} = $out;
|
${$_[0]} = $out;
|
||||||
return $out =~ /version\s+(\S+)/i ? $1 : undef;
|
return $out =~ /version\s+(\S+)/i ? $1 : undef;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user