mirror of
https://github.com/webmin/webmin.git
synced 2026-08-08 00:40:37 +01:00
Fix to compare versions number properly
http://www.virtualmin.com/node/69811
This commit is contained in:
@@ -37,10 +37,12 @@ return &parse_choice("SSLEngine");
|
||||
sub get_sslprotos
|
||||
{
|
||||
my @sslprotos = ("SSLv2", "SSLv3", "TLSv1" );
|
||||
if ($httpd_modules{'core'} >= 2.215) {
|
||||
my $ver = $httpd_modules{'core'};
|
||||
$ver =~ s/^(\d+)\.(\d)(\d+)$/$1.$2.$3/;
|
||||
if (&compare_version_numbers($ver, '2.2.15') >= 0) {
|
||||
push(@sslprotos, "TLSv1.1", "TLSv1.2");
|
||||
}
|
||||
if ($httpd_modules{'core'} >= 2.437) {
|
||||
if (&compare_version_numbers($ver, '2.4.37') >= 0) {
|
||||
push(@sslprotos, "TLSv1.3");
|
||||
}
|
||||
return @sslprotos;
|
||||
|
||||
Reference in New Issue
Block a user