diff options
author | Randy Crowder <randyj.crowder@gmail.com> | 2013-10-16 13:45:36 -0400 |
---|---|---|
committer | Randy Crowder <randyj.crowder@gmail.com> | 2013-10-16 13:45:36 -0400 |
commit | 1bb38a94a222ea4e9a6ed0602579f4beaee91ddc (patch) | |
tree | 06f6172ea5eacbd57eb3eefc84c80806e440f608 /config/dansguardian/dansguardian.inc | |
parent | 39eb807006c7c9ce58e594402617e7bba7434c11 (diff) | |
download | pfsense-packages-1bb38a94a222ea4e9a6ed0602579f4beaee91ddc.tar.gz pfsense-packages-1bb38a94a222ea4e9a6ed0602579f4beaee91ddc.tar.bz2 pfsense-packages-1bb38a94a222ea4e9a6ed0602579f4beaee91ddc.zip |
Modified to save icap scanning URL and contentscannertimeout value
Diffstat (limited to 'config/dansguardian/dansguardian.inc')
-rwxr-xr-x | config/dansguardian/dansguardian.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/dansguardian/dansguardian.inc b/config/dansguardian/dansguardian.inc index 12c2af93..b31df8ab 100755 --- a/config/dansguardian/dansguardian.inc +++ b/config/dansguardian/dansguardian.inc @@ -185,6 +185,7 @@ function sync_package_dansguardian($via_rpc="no",$install_process=false) { $icapscan=(preg_match('/icapscan/',$dansguardian_config['content_scanners'])?"on":"off"); $contentscannertimeout=($dansguardian_config['contentscannertimeout']?$dansguardian_config['contentscannertimeout']:"60"); $contentscanexceptions=($dansguardian_config['contentscanexceptions']?"on":"off"); + $icapurl=($dansguardian_config['icapurl']?$dansguardian_config['icapurl']:"icap://icapserver:1344/avscan"); $recheckreplacedurls=(preg_match('/recheckreplacedurls/',$dansguardian_config['misc_options'])?"on":"off"); $forwardedfor=(preg_match('/forwardedfor/',$dansguardian_config['misc_options'])?"on":"off"); $recheckreplacedurls=(preg_match('/icapscan/',$dansguardian_config['misc_options'])?"on":"off"); @@ -974,6 +975,7 @@ EOF; $filterip=($filterip==""?"filterip = ":$filterip); $filterports=($filterports==""?"filterports = $filterport":$filterports); include("/usr/local/pkg/dansguardian.conf.template"); + include("/usr/local/pkg/icapscan.conf.template"); #check cron_tab $new_cron=array(); @@ -1111,6 +1113,7 @@ EOF; #create config files file_put_contents($dansguardian_dir."/dansguardian.conf", $dg, LOCK_EX); + file_put_contents($dansguardian_dir."/contentscanners/icapscan.conf", $icapconf, LOCK_EX); #check virus_scanner options $libexec_dir= DANSGUARDIAN_DIR."/libexec/dansguardian/"; |