Fix SSL option setting

This commit is contained in:
Jamie Cameron
2009-12-22 11:58:18 -08:00
parent 0cc1d45911
commit 6f2c44df03

View File

@ -18,7 +18,12 @@ print &ui_table_row($text{'net_protocols'},
# SSL supported?
$sslopt = &find("ssl_disable", $conf, 2) ? "ssl_disable" : "ssl";
$dis = &find_value($sslopt, $conf);
@opts = ( [ "no", $text{'yes'} ], [ "yes", $text{'no'} ] );
if ($sslopt eq "ssl") {
@opts = ( [ "yes", $text{'yes'} ], [ "no", $text{'no'} ] );
}
else {
@opts = ( [ "no", $text{'yes'} ], [ "yes", $text{'no'} ] );
}
print &ui_table_row($text{'net_ssl_disable'},
&ui_radio($sslopt, $dis,
[ @opts,