aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-06 14:19:48 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-06 14:19:48 -0300
commit45e19a94127f35a0f5614589ec81684d08f58e4f (patch)
treeebe7a5e418edda0cb3c7fb5b397b8217ea4ac982 /config/squid3
parentbebf2ff9b37e609d08775388fe95ddc031d2fef3 (diff)
downloadpfsense-packages-45e19a94127f35a0f5614589ec81684d08f58e4f.tar.gz
pfsense-packages-45e19a94127f35a0f5614589ec81684d08f58e4f.tar.bz2
pfsense-packages-45e19a94127f35a0f5614589ec81684d08f58e4f.zip
Add more notes
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index a6460af8..76c728ec 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -672,6 +672,7 @@ function squid_validate_reverse($post, &$input_errors) {
$input_errors[] = 'The field \'external FQDN\' must contain a valid domain name';
$port = trim($post['reverse_http_port']);
+ // XXX: Where is $portrange being defined ???
preg_match("/(\d+)/",`sysctl net.inet.ip.portrange.reservedhigh`,$portrange);
if (!empty($port) && !is_port($port))
$input_errors[] = 'The field \'reverse HTTP port\' must contain a valid port number';
@@ -1260,6 +1261,7 @@ function squid_resync_upstream() {
function squid_resync_redirector() {
global $config;
+ // XXX: What port provide squirm binary? It's not present
$httpav_enabled = ($config['installedpackages']['clamav']['config'][0]['scan_http'] == 'on');
if ($httpav_enabled) {
$conf = "url_rewrite_program /usr/local/bin/squirm\n";
@@ -1932,6 +1934,7 @@ function squid_resync($via_rpc="no") {
file_put_contents(SQUID_CONFFILE, $conf);
/* make sure pinger is executable */
+ // XXX: Is it really necessary? Who could change its permission?
if (file_exists(SQUID_LOCALBASE . "/libexec/squid/pinger"))
exec("chmod a+x " . SQUID_LOCALBASE . "/libexec/squid/pinger");