summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index b34d442..c9e5975 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -438,6 +438,8 @@ function openvpn_reconfigure($mode, $settings) {
}
break;
}
+ if (!isset($settings['cert_depth']) && (strstr($settings['mode'], 'tls')))
+ $settings['cert_depth'] = 1;
if (is_numeric($settings['cert_depth'])) {
$sed = "";
$cert = lookup_cert($settings['certref']);
OpenPOWER on IntegriCloud