summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-11 21:21:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-11 21:21:11 +0000
commit0ad0f98ce32a1f45b5854bedf4a6cce1a42ceb7e (patch)
treee552212d665f980c38ccb8bbdeaaa4978f6422bf /etc
parent3f852e00608e300562adf89443cd74169ba908e3 (diff)
downloadpfsense-0ad0f98ce32a1f45b5854bedf4a6cce1a42ceb7e.zip
pfsense-0ad0f98ce32a1f45b5854bedf4a6cce1a42ceb7e.tar.gz
Correctly return the wan interface.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index bc2e520..1d6d876 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -507,7 +507,7 @@ function execute_command_return_output($command) {
function convert_friendly_interface_to_real_interface_name($interface) {
global $config;
if($interface == "lan") return $config['interfaces']['lan']['if'];
- if($interface == "wan") return $config['interfaces']['lan']['if'];
+ if($interface == "wan") return $config['interfaces']['wan']['if'];
foreach($config['interfaces'] as $int) {
if($int['descr'] == $interface)
return $int['if'];
@@ -634,7 +634,7 @@ function gather_altq_queue_stats($dont_return_root_queues) {
}
/*
- * reverse_strrchr($haystack, $needle): Return everything in $haystack up to the *last* instance of $needle.
+ * reverse_strrchr($haystack, $needle): Return everything in $haystack up to the *last* instance of $needle.
* Useful for finding paths and stripping file extensions.
*/
function reverse_strrchr($haystack, $needle) {
OpenPOWER on IntegriCloud