diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-14 03:06:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-14 03:06:04 +0000 |
commit | 09b4b95a8d0d67a54007ec67e37c892d1fad051a (patch) | |
tree | 7cd74aa5d87a0ba68169959b440c2e13f3c4d91d /etc | |
parent | 33f0abb1245ac409fbe9e94884fdd531eb1c42cf (diff) | |
download | pfsense-09b4b95a8d0d67a54007ec67e37c892d1fad051a.zip pfsense-09b4b95a8d0d67a54007ec67e37c892d1fad051a.tar.gz |
Correctly return lan and wan interfaces.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index d426530..7cf48f4 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -515,11 +515,11 @@ function execute_command_return_output($command) { */ function convert_friendly_interface_to_real_interface_name($interface) { global $config; - $lc_interface = strtolower($interface); + $interface = strtolower($interface); if($config['interfaces'][$interface]['if'] <> "") return $config['interfaces'][$interface]['if']; $i = 0; - $ifdescrs = array(); + $ifdescrs = array('wan','lan'); for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { $ifdescrs['opt' . $j] = "opt" . $j; } |