mirror of
https://github.com/opnsense/core.git
synced 2026-02-03 20:39:42 -05:00
Firewall: Rules [new] - add temporary validation to only support divert-to on IPv4 (as long as IPv6 doesn't work properly in pf)
This commit is contained in:
parent
9b53c7e563
commit
ce3d775b90
1 changed files with 6 additions and 0 deletions
|
|
@ -260,6 +260,12 @@ class Filter extends BaseModel
|
|||
$rule->{'divert-to'}->__reference
|
||||
));
|
||||
}
|
||||
if (!$rule->{'divert-to'}->isEmpty() && $rule->ipprotocol != 'inet') {
|
||||
$messages->appendMessage(new Message(
|
||||
gettext("Divert-to is currently only supported for IPv4 rules."),
|
||||
$rule->{'divert-to'}->__reference
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue