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/wizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/wizard.php') diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index c9dae67..9fd214f 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -614,7 +614,7 @@ function fixup_string($string) { $myurl = $proto . "://" . $config['interfaces']['lan']['ipaddr'] . $urlport . "/"; $newstring = str_replace("\$myurl", $myurl, $newstring); // fixup #2: $wanip - $curwanip = get_current_wan_address(); + $curwanip = get_interface_ip(); $newstring = str_replace("\$wanip", $curwanip, $newstring); // fixup #3: $lanip $lanip = $config['interfaces']['lan']['ipaddr']; -- cgit v1.1