aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2011-11-06 21:59:44 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-11-06 21:59:44 -0200
commit565678deb87f2b3681d18ebb2c06f7531f31508b (patch)
tree85df6e23b442ab475a52e2dffaf0a9cfeace92cd /config
parentc76aa942754386d13419af13e78449a4b8592205 (diff)
downloadpfsense-packages-565678deb87f2b3681d18ebb2c06f7531f31508b.tar.gz
pfsense-packages-565678deb87f2b3681d18ebb2c06f7531f31508b.tar.bz2
pfsense-packages-565678deb87f2b3681d18ebb2c06f7531f31508b.zip
pfBlocker - include connection timeout to fetch calls
Diffstat (limited to 'config')
-rwxr-xr-xconfig/pf-blocker/pfblocker.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/pf-blocker/pfblocker.inc b/config/pf-blocker/pfblocker.inc
index 4e715982..53bf9366 100755
--- a/config/pf-blocker/pfblocker.inc
+++ b/config/pf-blocker/pfblocker.inc
@@ -77,6 +77,12 @@ function sync_package_pfblocker() {
}
else{
conf_mount_rw();
+ #apply fetch timeout to pfsense-utils.inc
+ $pfsense_utils=file_get_contents('/etc/inc/pfsense-utils.inc');
+ $new_pfsense_utils=preg_replace("/\/usr\/bin\/fetch -q/","/usr/bin/fetch -T 5 -q",$pfsense_utils);
+ if ($new_pfsense_utils != $pfsense_utils)
+ file_put_contents('/etc/inc/pfsense-utils.inc',$new_pfsense_utils, LOCK_EX);
+
$pfblocker_enable=$config['installedpackages']['pfblocker']['config'][0]['enable_cb'];
$pfblocker_config=$config['installedpackages']['pfblocker']['config'][0];
$table_limit =($config['system']['maximumtableentries']!= ""?$config['system']['maximumtableentries']:"100000");