Fix version check

This commit is contained in:
Jamie Cameron
2020-11-29 16:00:52 -08:00
parent a7167349f4
commit aeb08deb94
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ print &ui_table_row($text{'users_root'},
# SSH 1 RSA authentication
if (($version{'type'} eq 'ssh' && $version{'number'} < 3) ||
($version{'type'} eq 'openssh' && $version{'number'} < 7.4)) {
($version{'type'} eq 'openssh' && $version{'number'} < 7.3)) {
$rsa = &find_value("RSAAuthentication", $conf);
print &ui_table_row($text{'users_rsa'},
&ui_yesno_radio('rsa', lc($rsa) ne 'no'));

View File

@@ -48,7 +48,7 @@ if ($version{'type'} ne 'ssh' || $version{'number'} < 3) {
&save_directive("PermitRootLogin", $conf, $in{'root'});
if (($version{'type'} eq 'ssh' && $version{'number'} < 3) ||
($version{'type'} eq 'openssh' && $version{'number'} < 7.4)) {
($version{'type'} eq 'openssh' && $version{'number'} < 7.3)) {
&save_directive("RSAAuthentication", $conf, $in{'rsa'} ? 'yes' : 'no');
}
if ($version{'type'} eq 'openssh' && $version{'number'} >= 3) {