diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/squid/squid.inc | 11 | ||||
-rw-r--r-- | packages/squid/squid.xml | 3 |
2 files changed, 9 insertions, 5 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 @@ <?xml version="1.0" encoding="utf-8"?> <packagegui> <name>squid</name> - <version>2.6.5_1-p8</version> - + <version>2.6.5_1-p9</version> <include_file>/usr/local/pkg/squid.inc</include_file> <!-- Installation --> <additional_files_needed> |