From 96279951340656b2d54cde06b86b1f60659395b8 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 2 Oct 2012 08:28:49 +0545 Subject: Fix equals check for pfblocker rule loading Sorry guys - I missed out an equals sign here, the logic ended up only applying rules to the first interface, and not for others. --- config/pf-blocker/pfblocker.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/pf-blocker/pfblocker.inc b/config/pf-blocker/pfblocker.inc index 24ffa5b9..1c107dc4 100755 --- a/config/pf-blocker/pfblocker.inc +++ b/config/pf-blocker/pfblocker.inc @@ -483,7 +483,7 @@ function sync_package_pfblocker($cron="") { # top of the list for each interface, after any built-in rules (e.g. anti-lockout) $found_new_interface = TRUE; foreach ($interfaces_processed as $processed_interface){ - if ($processed_interface = $rule['interface']){ + if ($processed_interface == $rule['interface']){ $found_new_interface = FALSE; } } -- cgit v1.2.3