mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
firewall: for automatic rules, floatind means either all interfaces (empty) or more than one selected. for https://github.com/opnsense/plugins/issues/1720
This commit is contained in:
parent
2c25b1cffa
commit
211fd8dfb3
@ -731,7 +731,7 @@ $( document ).ready(function() {
|
||||
plugins_firewall($fw);
|
||||
foreach ($fw->iterateFilterRules() as $rule):
|
||||
$is_selected = $rule->getInterface() == $selected_if || (
|
||||
$rule->getInterface() == "" && $selected_if == "FloatingRules"
|
||||
($rule->getInterface() == "" || strpos($rule->getInterface(), ",") !== false) && $selected_if == "FloatingRules"
|
||||
);
|
||||
if ($rule->isEnabled() && $is_selected):
|
||||
$filterent = $rule->getRawRule();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user