summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.newwanip2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 9f03fcc..b773617 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";
OpenPOWER on IntegriCloud