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:
Ad Schellevis 2020-03-09 15:13:02 +01:00
parent 2c25b1cffa
commit 211fd8dfb3

View File

@ -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();