aboutsummaryrefslogtreecommitdiffstats
path: root/config/pf-blocker/pfblocker.inc
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-11-11 16:25:36 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-11-11 16:25:36 -0200
commit856d4ce775e4ef1863b6c0e5106d86a2510553ea (patch)
treeea178d85f8fc0f28e12149103513317f4dce1ab2 /config/pf-blocker/pfblocker.inc
parent9f1b1f3daa7e9ea48145047f4a92c2d74e82d923 (diff)
downloadpfsense-packages-856d4ce775e4ef1863b6c0e5106d86a2510553ea.tar.gz
pfsense-packages-856d4ce775e4ef1863b6c0e5106d86a2510553ea.tar.bz2
pfsense-packages-856d4ce775e4ef1863b6c0e5106d86a2510553ea.zip
pfBlocker - version 0.1.4.6 with fixes in float rules check and about gui info
Diffstat (limited to 'config/pf-blocker/pfblocker.inc')
-rwxr-xr-xconfig/pf-blocker/pfblocker.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/pf-blocker/pfblocker.inc b/config/pf-blocker/pfblocker.inc
index c0ea4982..95642d62 100755
--- a/config/pf-blocker/pfblocker.inc
+++ b/config/pf-blocker/pfblocker.inc
@@ -436,7 +436,7 @@ function sync_package_pfblocker() {
}
}
#include all rules that is not from pfBlocker
- if (!preg_match("/pfBlocker.*rule/",$rule['descr']) && $rule['interface'] != "")
+ if (!preg_match("/pfBlocker.*rule/",$rule['descr']) && ($rule['interface'] != "" || $rule['floating']=="yes"))
$new_rules[]=$rule;
}
$config['filter']['rule']=$new_rules;
@@ -472,7 +472,10 @@ function sync_package_pfblocker() {
#update pfctrl tables
foreach ($aliases_list as $table)
exec("/sbin/pfctl -t " . escapeshellarg($table) . " -T kill 2>&1", $result_pfb);
-
+
+ #uncheck donation and credits check box
+ $config['installedpackages']['pfblocker']['config'][0]['donation']="";
+ $config['installedpackages']['pfblocker']['config'][0]['credits']="";
#write config
write_config();