summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-25 20:06:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-25 20:06:59 +0000
commit33cbbb600738c8eda7c6557af73876d365be16c6 (patch)
tree66cac0adb93b3828291f90fa466220b362a69fb9 /etc
parent246e770c6a093d901f837117c472be2027cda993 (diff)
downloadpfsense-33cbbb600738c8eda7c6557af73876d365be16c6.zip
pfsense-33cbbb600738c8eda7c6557af73876d365be16c6.tar.gz
If for some reason we fail to get the wanip, use get_current_wan_address();
Diffstat (limited to 'etc')
-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