From 565678deb87f2b3681d18ebb2c06f7531f31508b Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Sun, 6 Nov 2011 21:59:44 -0200 Subject: pfBlocker - include connection timeout to fetch calls --- config/pf-blocker/pfblocker.inc | 6 ++++++ pkg_config.8.xml | 2 +- pkg_config.8.xml.amd64 | 2 +- 3 files changed, 8 insertions(+), 2 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"); diff --git a/pkg_config.8.xml b/pkg_config.8.xml index 75abbb37..ebbc5478 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -69,7 +69,7 @@ http://forum.pfsense.org/index.php/topic,42543.0.html http://pfsense.org/packages/config/pf-blocker/pfblocker.xml http://files.pfsense.org/packages/8/All/ - 0.1.4.1 + 0.1.4.2 Beta 2.0 tom@tomschaefer.org marcellocoutinho@gmail.com diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index fa302c96..ac49183a 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -144,7 +144,7 @@ http://forum.pfsense.org/index.php/topic,42543.0.html http://pfsense.org/packages/config/pf-blocker/pfblocker.xml http://files.pfsense.org/packages/amd64/8/All/ - 0.1.4.1 + 0.1.4.2 Beta 2.0 tom@tomschaefer.org marcellocoutinho@gmail.com -- cgit v1.2.3