aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-30 19:37:55 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-30 19:37:55 +0200
commit21b9af726d7a7fd659e95312a985453fa059633e (patch)
treeab52bce9d84d00df46b0ae19d831b6bb8befbecf /config
parent00749933c6c09280683271dfbe6d3f3140be1a4f (diff)
downloadpfsense-packages-21b9af726d7a7fd659e95312a985453fa059633e.tar.gz
pfsense-packages-21b9af726d7a7fd659e95312a985453fa059633e.tar.bz2
pfsense-packages-21b9af726d7a7fd659e95312a985453fa059633e.zip
Patch squidclamav.conf so that is uses WebGUI URL by default
Stop nagging users with confusing nonsense and make it work out of the box.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/squid3/34/squid.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 8188dfda..bbccd123 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -1513,9 +1513,9 @@ EOF;
if (file_exists(SQUID_LOCALBASE . "/etc/c-icap/squidclamav.conf.default")) {
$sample_file = file_get_contents(SQUID_LOCALBASE . "/etc/c-icap/squidclamav.conf.default");
$clamav_m[0] = "@/var/run/clamav/clamd.ctl@";
- $clamav_m[1] = "@cgi-bin/clwarn.cgi@";
+ $clamav_m[1] = "@http\://proxy.domain.dom/cgi-bin/clwarn.cgi@";
$clamav_r[0] = "/var/run/clamav/clamd.sock";
- $clamav_r[1] = "squid_clwarn.php";
+ $clamav_r[1] = "{$config['system']['webgui']['protocol']}://{$config['system']['hostname']}.{$config['system']['domain']}/squid_clwarn.php";
file_put_contents(SQUID_LOCALBASE . "/etc/c-icap/squidclamav.conf.sample", preg_replace($clamav_m, $clamav_r, $sample_file), LOCK_EX);
}
}