Fix to drop removed SSH options from 'Miscellaneous Options' page

This commit is contained in:
Ilia Ross
2025-01-17 14:26:36 +02:00
parent f5e15dbe08
commit 6b3457e9fd
2 changed files with 8 additions and 4 deletions

View File

@ -58,7 +58,8 @@ if ($version{'type'} eq 'openssh') {
$loglevel ? 1 : 0) ] ]));
}
if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
if (($version{'type'} ne 'ssh' && $version{'number'} < 7.6) ||
($version{'type'} eq 'ssh' && $version{'number'} < 2)) {
# Bits in key
$bits = &find_value("ServerKeyBits", $conf);
print &ui_table_row($text{'misc_bits'},
@ -73,7 +74,8 @@ if ($version{'type'} eq 'ssh') {
&ui_yesno_radio("quiet", lc($quiet) ne 'no'));
}
if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
if (($version{'type'} ne 'ssh' && $version{'number'} < 7.6) ||
($version{'type'} eq 'ssh' && $version{'number'} < 2)) {
# Interval between key re-generation
$regen = &find_value("KeyRegenerationInterval", $conf);
print &ui_table_row($text{'misc_regen'},

View File

@ -49,7 +49,8 @@ if ($version{'type'} eq 'openssh') {
$in{'loglevel_def'} ? undef : $in{'loglevel'});
}
if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
if (($version{'type'} ne 'ssh' && $version{'number'} < 7.6) ||
($version{'type'} eq 'ssh' && $version{'number'} < 2)) {
if ($in{'bits_def'}) {
&save_directive("ServerKeyBits", $conf);
}
@ -63,7 +64,8 @@ if ($version{'type'} eq 'ssh') {
&save_directive("QuietMode", $conf, $in{'quite'} ? 'yes' : 'no');
}
if ($version{'type'} ne 'ssh' || $version{'number'} < 2) {
if (($version{'type'} ne 'ssh' && $version{'number'} < 7.6) ||
($version{'type'} eq 'ssh' && $version{'number'} < 2)) {
if ($in{'regen_def'}) {
&save_directive("KeyRegenerationInterval", $conf);
}