aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-30 00:25:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-30 00:25:43 +0000
commit33dff22726e0a699c123ad747c36c4ca95234af2 (patch)
tree43c833007a1a9ba1df468d030658569fa50f9091
parent58a559aee126e9b4a00c29f0d64b5f89ddd0144c (diff)
downloadpfsense-packages-33dff22726e0a699c123ad747c36c4ca95234af2.tar.gz
pfsense-packages-33dff22726e0a699c123ad747c36c4ca95234af2.tar.bz2
pfsense-packages-33dff22726e0a699c123ad747c36c4ca95234af2.zip
When defining ports, do not include blank ip addresses which leads to entries such as:
http_port :3128
-rw-r--r--packages/squid.inc3
1 files changed, 2 insertions, 1 deletions
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);