mirror of
https://github.com/webmin/webmin.git
synced 2026-09-21 13:00:38 +01:00
No need for separate SSL option when using a list of URIs https://github.com/webmin/webmin/issues/1883
This commit is contained in:
@@ -78,13 +78,15 @@ print &ui_table_row($text{'server_rootbindpw'},
|
||||
# SSL options
|
||||
print &ui_table_hr();
|
||||
|
||||
$ssl = &find_svalue("ssl", $conf);
|
||||
$ssl = "" if ($ssl eq "no");
|
||||
print &ui_table_row($text{'server_ssl'},
|
||||
&ui_radio("ssl", &find_svalue("ssl", $conf),
|
||||
[ [ "yes", $text{'yes'} ],
|
||||
[ "start_tls", $text{'server_tls'} ],
|
||||
[ "", $text{'no'} ] ]));
|
||||
if (!$uri) {
|
||||
$ssl = &find_svalue("ssl", $conf);
|
||||
$ssl = "" if ($ssl eq "no");
|
||||
print &ui_table_row($text{'server_ssl'},
|
||||
&ui_radio("ssl", &find_svalue("ssl", $conf),
|
||||
[ [ "yes", $text{'yes'} ],
|
||||
[ "start_tls", $text{'server_tls'} ],
|
||||
[ "", $text{'no'} ] ]));
|
||||
}
|
||||
|
||||
print &ui_table_row($text{'server_peer'},
|
||||
&ui_radio("peer", &find_svalue("tls_checkpeer", $conf),
|
||||
|
||||
@@ -112,7 +112,9 @@ else {
|
||||
}
|
||||
|
||||
# SSL mode
|
||||
&save_directive($conf, "ssl", $in{'ssl'} || undef);
|
||||
if (defined($in{'ssl'})) {
|
||||
&save_directive($conf, "ssl", $in{'ssl'} || undef);
|
||||
}
|
||||
|
||||
# Check server SSL cert
|
||||
&save_directive($conf, "tls_checkpeer", $in{'peer'} || undef);
|
||||
|
||||
Reference in New Issue
Block a user