From 33dff22726e0a699c123ad747c36c4ca95234af2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 30 Jul 2006 00:25:43 +0000 Subject: When defining ports, do not include blank ip addresses which leads to entries such as: http_port :3128 --- packages/squid.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/squid.inc') diff --git a/packages/squid.inc b/packages/squid.inc index c7ce446a..e28b31e6 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -282,7 +282,8 @@ EOD; $real_ifaces = array(); foreach (explode(',', $ifaces) as $i => $iface) { $real_ifaces[] = squid_get_real_interface_address($iface); - $conf .= "http_port {$real_ifaces[$i][0]}:$port\n"; + if($real_ifaces[$i][0]) + $conf .= "http_port {$real_ifaces[$i][0]}:$port\n"; } $icp_port = ($settings['icp_port'] ? $settings['icp_port'] : 0); -- cgit v1.2.3