summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_server.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/vpn_openvpn_server.php')
-rw-r--r--usr/local/www/vpn_openvpn_server.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php
index fa3cc24..0ef67a7 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -95,6 +95,7 @@ if($_GET['act']=="new"){
$pconfig['interface'] = "wan";
$pconfig['local_port'] = openvpn_port_next('UDP');
$pconfig['pool_enable'] = "yes";
+ $pconfig['cert_depth'] = 1;
}
if($_GET['act']=="edit"){
@@ -123,7 +124,10 @@ if($_GET['act']=="edit"){
$pconfig['crlref'] = $a_server[$id]['crlref'];
$pconfig['certref'] = $a_server[$id]['certref'];
$pconfig['dh_length'] = $a_server[$id]['dh_length'];
- $pconfig['cert_depth'] = $a_server[$id]['cert_depth'];
+ if (isset($a_server[$id]['cert_depth']))
+ $pconfig['cert_depth'] = $a_server[$id]['cert_depth'];
+ else
+ $pconfig['cert_depth'] = 1;
if ($pconfig['mode'] == "server_tls_user")
$pconfig['strictusercn'] = $a_server[$id]['strictusercn'];
} else
OpenPOWER on IntegriCloud