aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-12-04 16:20:15 -0600
committerChris Buechler <cmb@pfsense.org>2015-12-04 16:20:15 -0600
commitc44f2a4a14977cfdeb921ae22cebddcb1d36a4d9 (patch)
treef905c8ce2536a2c96e6cb610af61890103d100c6 /config
parent7039bd10d12d81879d7a1c03d4e4cd5fa3aab938 (diff)
parent3fa5e6c4d7c580e8efce6f5e498dce46d7a43cd7 (diff)
downloadpfsense-packages-c44f2a4a14977cfdeb921ae22cebddcb1d36a4d9.tar.gz
pfsense-packages-c44f2a4a14977cfdeb921ae22cebddcb1d36a4d9.tar.bz2
pfsense-packages-c44f2a4a14977cfdeb921ae22cebddcb1d36a4d9.zip
Merge pull request #1206 from doktornotor/patch-2
Diffstat (limited to 'config')
-rw-r--r--config/pfblockerng/pfblockerng.inc1
-rw-r--r--config/pfblockerng/pfblockerng.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/config/pfblockerng/pfblockerng.inc b/config/pfblockerng/pfblockerng.inc
index 69e010d3..c0e81b27 100644
--- a/config/pfblockerng/pfblockerng.inc
+++ b/config/pfblockerng/pfblockerng.inc
@@ -200,6 +200,7 @@ function pfb_global() {
$pfb['dnsbl'] = $pfb['dnsblconfig']['pfb_dnsbl']; // Enabled state of DNSBL
$pfb['dnsbl_port'] = $pfb['dnsblconfig']['pfb_dnsport'] ?: ''; // Lighttpd web server http port setting
$pfb['dnsbl_port_ssl'] = $pfb['dnsblconfig']['pfb_dnsport_ssl']?: ''; // Lighttpd web server https port setting
+ $pfb['dnsbl_alexa'] = $pfb['dnsblconfig']['alexa_enable']; // Alexa whitelist
// Restore previous download on failure (default to 'on')
$pfb['restore'] = $pfb['config']['restore_feed'] != '' ? $pfb['config']['restore_feed'] : 'on';
diff --git a/config/pfblockerng/pfblockerng.php b/config/pfblockerng/pfblockerng.php
index d71fdff8..8a368d2e 100644
--- a/config/pfblockerng/pfblockerng.php
+++ b/config/pfblockerng/pfblockerng.php
@@ -108,7 +108,7 @@ if (in_array($argv[1], array('update', 'updateip', 'updatednsbl', 'dc', 'bu', 'u
}
// Skip Alexa update, if disabled
- if ($pfb['dnsbl_alexa'] == 'Disabled') {
+ if ($pfb['dnsbl_alexa'] != 'on') {
unset($pfb['extras'][5]);
}
@@ -1547,4 +1547,4 @@ EOF;
// Unset arrays
unset ($roptions4, $et_options, $xmlrep);
}
-?> \ No newline at end of file
+?>