Commit 9f31b9d5 authored by Ad Schellevis's avatar Ad Schellevis

filter.inc, ignore scrub rule if none of the interfaces is found.

parent 9b957e31
......@@ -689,6 +689,10 @@ function filter_generate_scrubing(&$FilterIflist)
$scrub_rule_out .= !empty($scrub_rule['min-ttl']) ? " min-ttl " . $scrub_rule['min-ttl'] . " " : "";
$scrub_rule_out .= !empty($scrub_rule['set-tos']) ? " set-tos " . $scrub_rule['set-tos'] . " " : "";
$scrub_rule_out .= "\n";
if (count($interfaces) == 0) {
# unknown interface, skip rule
$scrubrules .= "#";
}
$scrubrules .= $scrub_rule_out;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment