diff options
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/vpn_openvpn_client.php | 2 | ||||
-rw-r--r-- | usr/local/www/vpn_openvpn_server.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php index 3678138..4faf9ce 100644 --- a/usr/local/www/vpn_openvpn_client.php +++ b/usr/local/www/vpn_openvpn_client.php @@ -630,7 +630,7 @@ function autotls_change() { $caname = ""; $inuse = ""; $revoked = ""; - if (in_array($cert['refid'], $config['system']['user'][$userid]['cert'])) + if (is_user_cert($cert['refid'])) continue; $ca = lookup_ca($cert['caref']); if ($ca) diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 7b85514..abf83b3 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -754,7 +754,7 @@ function netbios_change() { $caname = ""; $inuse = ""; $revoked = ""; - if (in_array($cert['refid'], $config['system']['user'][$userid]['cert'])) + if (is_user_cert($cert['refid'])) continue; $ca = lookup_ca($cert['caref']); if ($ca) |