mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
VPN: OpenVPN: Instances - validate "Auth Token Lifetime" requires a non zero Renegotiate time, closes https://github.com/opnsense/core/issues/7690
This commit is contained in:
parent
3cbc7927db
commit
ec23ffc0ef
@ -156,6 +156,13 @@ class OpenVPN extends BaseModel
|
||||
$key . ".proto"
|
||||
));
|
||||
}
|
||||
if ((string)$instance->{'auth-gen-token'} != '0' && (string)$instance->{'reneg-sec'} == '0') {
|
||||
$messages->appendMessage(new Message(
|
||||
gettext('A token lifetime requires a non zero Renegotiate time.'),
|
||||
$key . ".auth-gen-token"
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
return $messages;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user