From b328a3cc33c6f3ab7f153ead305562145a40f5ab Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 11 Jan 2007 23:35:17 +0000 Subject: Bump to version p9 * Fix incorrect comment line * Create single redirect line for transparent mode --- packages/squid/squid.inc | 11 ++++++++--- packages/squid/squid.xml | 3 +-- pkg_config.xml | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index 5a716747..ebf8e702 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -381,10 +381,15 @@ function squid_resync_general() { if (($settings['transparent_proxy'] == 'on')) { $conf .= "http_port 127.0.0.1:80 transparent\n"; } - $conf .= "http_port {$real_ifaces[$i][0]}:$port\n"; + } else { + foreach (explode(',', $ifaces) as $i => $iface) { + $real_ifaces[] = squid_get_real_interface_address($iface); + if($real_ifaces[$i][0]) { + $conf .= "http_port {$real_ifaces[$i][0]}:$port\n"; + } + } } } - $icp_port = ($settings['icp_port'] ? $settings['icp_port'] : 0); $pidfile = "{$g['varrun_path']}/squid.pid"; @@ -422,7 +427,7 @@ EOD; $ip = long2ip(ip2long($ip) & ip2long($mask)); $src .= " $ip/$mask"; } - $conf .= "Allow local network(s) on interface(s)\n"; + $conf .= "# Allow local network(s) on interface(s)\n"; $conf .= "acl localnet src $src\n"; $valid_acls[] = 'localnet'; } diff --git a/packages/squid/squid.xml b/packages/squid/squid.xml index b75abb8a..e09382f2 100644 --- a/packages/squid/squid.xml +++ b/packages/squid/squid.xml @@ -1,8 +1,7 @@ squid - 2.6.5_1-p8 - + 2.6.5_1-p9 /usr/local/pkg/squid.inc diff --git a/pkg_config.xml b/pkg_config.xml index 342a19c3..7d218b6b 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -500,7 +500,7 @@ High performance web proxy cache. http://www.squid-cache.org/ Network - 2.6.5_1-p8 + 2.6.5_1-p9 BETA 1.0 fernando@netfilter.com.br seth.mos@xs4all.nl -- cgit v1.2.3