mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
obey verify-x509-name for "Remote Access ( User Auth )", for https://github.com/opnsense/core/issues/3193
This commit is contained in:
parent
f0d7562e49
commit
c83aa08c8f
@ -117,8 +117,7 @@ class PlainOpenVPN extends BaseExporter implements IExportProvider
|
||||
$conf[] = "lport 0";
|
||||
}
|
||||
|
||||
if ($this->config['mode'] !== 'server_user' && !empty($this->config['server_subject'])
|
||||
&& !empty($this->config['validate_server_cn'])) {
|
||||
if (!empty($this->config['server_subject']) && !empty($this->config['validate_server_cn'])) {
|
||||
$tmp_subject = "";
|
||||
foreach ($this->config['server_subject'] as $key => $value) {
|
||||
if (!empty($tmp_subject)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user