Do not process a rule that is attached to a disabled interface

This commit is contained in:
Scott Ullrich 2005-05-31 16:23:06 +00:00
parent 5170d8c2bf
commit 3d24150f4b

View File

@ -1272,6 +1272,10 @@ function generate_user_filter_rule($rule, $ngcounter) {
return;
}
/* do not process this rule if the attached interface is disabled */
if(!$config['interfaces'][$rule['interface']]['enable'])
return;
$pptpdcfg = $config['pptpd'];
if ($pptpdcfg['mode'] == "server") {