From 2fbde0040380298057e05dc321a51348df798d9c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 1 Mar 2005 01:19:00 +0000 Subject: Speed up convert_real_interface_to_friendly_interface_name --- etc/inc/pfsense-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index e7ee527..68e2f4b 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -494,7 +494,7 @@ function convert_real_interface_to_friendly_interface_name($interface) { } foreach ($ifdescrs as $ifdescr => $ifname) { $int = filter_translate_type_to_real_interface($ifname); - if($config['interfaces'][$ifname]['if'] == $interface) return $ifname; + if($int == $interface) return $ifname; } return $interface; } -- cgit v1.1