Skip to content

Commit

Permalink
Filter, rule overview, show automatic rules targetting all interfaces…
Browse files Browse the repository at this point in the history
… in Floating section (slightly related to #3594)
  • Loading branch information
AdSchellevis committed Jul 30, 2019
1 parent f8d5c01 commit 534f3c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/www/firewall_rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,10 @@ function firewall_rule_item_action($filterent)
filter_core_bootstrap($fw);
plugins_firewall($fw);
foreach ($fw->iterateFilterRules() as $rule):
if ($rule->getInterface() == $selected_if && $rule->isEnabled()):
$is_selected = $rule->getInterface() == $selected_if || (
$rule->getInterface() == "" && $selected_if == "FloatingRules"
);
if ($rule->isEnabled() && $is_selected):
$filterent = $rule->getRawRule();
legacy_html_escape_form_data($filterent);
$rule_stats = !empty($rule->getLabel()) ? $all_rule_stats[$rule->getLabel()] : array();?>
Expand Down

0 comments on commit 534f3c8

Please sign in to comment.