From 00380613e89b0be2ad2b15a02003196eff7ea4d1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 23 Oct 2009 13:44:11 -0400 Subject: [PATCH] Unbreak find_interface_ip for normal interfaces --- etc/inc/interfaces.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 806dc51be5..5d93228e4c 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2441,7 +2441,9 @@ function find_interface_ip($interface, $flush = false) global $interface_ip_arr_cache; $interface = str_replace("\n", "", $interface); - $interface = convert_friendly_interface_to_real_interface_name($interface); + + if (does_interface_exist($interface) == false) + $interface = convert_friendly_interface_to_real_interface_name($interface); if (does_interface_exist($interface) == false) return;