mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not generate certificate directives if no certificate is selected.
This commit is contained in:
parent
939ee35a12
commit
6300a53dff
@ -433,7 +433,7 @@ EOD;
|
||||
}
|
||||
|
||||
foreach ($keys as $key) {
|
||||
if ($mode == "server") {
|
||||
if ($mode == "server" && $settings['cipher'] != "none") {
|
||||
$openvpn_conf .= $key['directive'] . " " . $base_file . $settings['cipher'] . "/".$key['field'] . "\n";
|
||||
} else {
|
||||
$filename = "$base_file/openvpn_{$mode}{$id}." . $key['field'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user