From 33cbbb600738c8eda7c6557af73876d365be16c6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 25 Nov 2005 20:06:59 +0000 Subject: [PATCH] If for some reason we fail to get the wanip, use get_current_wan_address(); --- etc/rc.newwanip | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 9f03fccce9..b7736172b6 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -38,6 +38,8 @@ if($argv[1] <> "") { $curwanip = find_interface_ip($argv[1]); $interface = convert_real_interface_to_friendly_interface_name($argv[1]); + if($curwanip == "") + $curwanip = get_current_wan_address(); } else { $curwanip = get_current_wan_address(); $interface = "wan";