mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
openvpn: switcheroo for ns-cert-type / remote-cert-tls
PR: https://forum.opnsense.org/index.php?topic=6003.0
This commit is contained in:
parent
b605812b71
commit
73abc7c3d6
@ -300,7 +300,7 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $verifys
|
||||
if (is_array($server_cert) && ($server_cert['crt'])) {
|
||||
$purpose = cert_get_purpose($server_cert['crt'], true);
|
||||
if ($purpose['server'] == 'Yes') {
|
||||
$conf .= "ns-cert-type server{$nl}";
|
||||
$conf .= "remote-cert-tls server{$nl}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user