diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2011-11-06 21:59:44 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2011-11-06 21:59:44 -0200 |
commit | 565678deb87f2b3681d18ebb2c06f7531f31508b (patch) | |
tree | 85df6e23b442ab475a52e2dffaf0a9cfeace92cd /config/pf-blocker | |
parent | c76aa942754386d13419af13e78449a4b8592205 (diff) | |
download | pfsense-packages-565678deb87f2b3681d18ebb2c06f7531f31508b.tar.gz pfsense-packages-565678deb87f2b3681d18ebb2c06f7531f31508b.tar.bz2 pfsense-packages-565678deb87f2b3681d18ebb2c06f7531f31508b.zip |
pfBlocker - include connection timeout to fetch calls
Diffstat (limited to 'config/pf-blocker')
-rwxr-xr-x | config/pf-blocker/pfblocker.inc | 6 |
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"); |