diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-24 03:04:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-24 03:04:17 +0000 |
commit | 79d3351998a53be4e5758d6253b62c3a5a326d84 (patch) | |
tree | 9bd02a85661500f38335eb962a09b1294c4d9e7a /packages | |
parent | 7fc5b5d2e110ca0db984d73f26740ebc806fa5b6 (diff) | |
download | pfsense-packages-79d3351998a53be4e5758d6253b62c3a5a326d84.tar.gz pfsense-packages-79d3351998a53be4e5758d6253b62c3a5a326d84.tar.bz2 pfsense-packages-79d3351998a53be4e5758d6253b62c3a5a326d84.zip |
Correctly resolve LAN and WAN ip's
Diffstat (limited to 'packages')
-rw-r--r-- | packages/squid_ng.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/squid_ng.inc b/packages/squid_ng.inc index c9675d07..5d49c1b6 100644 --- a/packages/squid_ng.inc +++ b/packages/squid_ng.inc @@ -116,12 +116,12 @@ function global_write_squid_config() { /* option: http_port */ if($http_port == "") $http_port="3128"; - $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['squidng']['config'][0]['active_interface']); - if($int == "LAN") { + if($config['installedpackages']['squidng']['config'][0]['active_interface'] == "LAN") { $listen_ip = find_interface_ip($config['interfaces']['lan']['if']); } elseif($int == "WAN") { $listen_ip = find_interface_ip($config['interfaces']['wan']['if']); } else { + $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['squidng']['config'][0]['active_interface']); $listen_ip = find_interface_ip($int); } fwrite($fout, "http_port " . $listen_ip . ":" . $http_port . "\n"); |