diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-25 20:06:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-25 20:06:59 +0000 |
commit | 33cbbb600738c8eda7c6557af73876d365be16c6 (patch) | |
tree | 66cac0adb93b3828291f90fa466220b362a69fb9 | |
parent | 246e770c6a093d901f837117c472be2027cda993 (diff) | |
download | pfsense-33cbbb600738c8eda7c6557af73876d365be16c6.zip pfsense-33cbbb600738c8eda7c6557af73876d365be16c6.tar.gz |
If for some reason we fail to get the wanip, use get_current_wan_address();
-rwxr-xr-x | etc/rc.newwanip | 2 |
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"; |