mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
src: style sweep
This commit is contained in:
parent
fed2a35269
commit
33fcdabdbb
@ -267,7 +267,7 @@ function filter_core_rules_system($fw, $defaults)
|
||||
}
|
||||
// CARP defaults
|
||||
if ((new OPNsense\Interfaces\Vip())->isCarpEnabled()) {
|
||||
foreach ($ipv6_disabled ? ['224.0.0.18'] : ['ff02::12', '224.0.0.18'] as $to) {
|
||||
foreach ($ipv6_disabled ? ['224.0.0.18'] : ['ff02::12', '224.0.0.18'] as $to) {
|
||||
$fw->registerFilterRule(
|
||||
1,
|
||||
['protocol' => 'carp', 'direction' => 'any', 'to' => $to, 'descr' => 'CARP defaults'],
|
||||
|
||||
@ -40,14 +40,16 @@ class General extends BaseModel
|
||||
{
|
||||
$messages = parent::performValidation($validateFullModel);
|
||||
$enable_config_constraints = false;
|
||||
foreach ([
|
||||
foreach (
|
||||
[
|
||||
'CipherString',
|
||||
'Ciphersuites',
|
||||
'groups',
|
||||
'MinProtocol',
|
||||
'MinProtocol_DTLS',
|
||||
'SignatureAlgorithms'
|
||||
] as $fieldname) {
|
||||
] as $fieldname
|
||||
) {
|
||||
if (!empty((string)$this->$fieldname)) {
|
||||
$enable_config_constraints = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user