Merge pull request #19 from RaspAP/zbchristian-mods-openvpn

Allow to configure OpenVPN with a client certificate
This commit is contained in:
Bill Zimmerman
2021-04-06 14:22:09 +02:00
committed by GitHub
8 changed files with 113 additions and 35 deletions

View File

@@ -53,7 +53,7 @@ function DisplayOpenVPNConfig()
$authUser = current($auth);
$authPassword = next($auth);
}
$clients = preg_grep('~\login.(conf)$~', scandir(pathinfo(RASPI_OPENVPN_CLIENT_LOGIN, PATHINFO_DIRNAME)));
$clients = preg_grep('/client.(conf)$/', scandir(pathinfo(RASPI_OPENVPN_CLIENT_CONFIG, PATHINFO_DIRNAME)));
$logEnable = 0;
if (!empty($_POST) && !isset($_POST['log-openvpn'])) {