From 85a5da131ccbbb6fe335da3ca7d67cc0c3f60aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Thu, 23 Oct 2008 21:51:53 +0000 Subject: * Rename get_current_wan_address to get_interface_ip * Rename get_real_wan_interface to get_real_interface * Simplify get_interface_ip by using find_interface_ip which should help in speed to since its using caching. Pointed by billm@ * Cleanup some code when passing or remove some unused one. --- usr/local/www/diag_logs_filter.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'usr/local/www/diag_logs_filter.php') diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 11e7478..850a338 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -73,12 +73,9 @@ function conv_clog($logfile, $tail = 50) { $logarr = ""; /* make interface/port table */ $iftable = array(); - $iftable[$config['interfaces']['lan']['if']] = "LAN"; - $iftable[get_real_wan_interface()] = "WAN"; - /* optional if list */ - $iflist = get_configured_interface_with_descr(true); + $iflist = get_configured_interface_with_descr(); foreach ($iflist as $if => $ifdesc) - $iftable[$config['interfaces'][$if]['if']] = $ifdesc; + $iftable[get_real_interface($if)] = $ifdesc; $sor = isset($config['syslog']['reverse']) ? "-r" : ""; -- cgit v1.1