Do not generate certificate directives if no certificate is selected.

This commit is contained in:
Ermal Luçi 2008-03-06 18:09:26 +00:00
parent 939ee35a12
commit 6300a53dff

View File

@ -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'];