Fix to use the same format when comparing versions

This commit is contained in:
Ilia Ross
2024-08-15 13:49:24 +03:00
parent cf838e5d9a
commit cbe75574d0

View File

@@ -183,10 +183,10 @@ if ($letsencrypt_cmd) {
my $server_flags = "";
my $subset_flags = "";
$key_type ||= $config{'letsencrypt_algo'} || 'rsa';
if (&compare_version_numbers($cmd_ver, 1.11) < 0) {
if (&compare_version_numbers($cmd_ver, '<', 1.11)) {
$old_flags = " --manual-public-ip-logging-ok";
}
if (&compare_version_numbers($cmd_ver, 2.0) >= 0) {
if (&compare_version_numbers($cmd_ver, '>=', 2.0)) {
$new_flags = " --key-type ".quotemeta($key_type);
}
if ($reuse_key) {