summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-06-09 20:02:25 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-06-09 20:02:25 +0000
commita2b58f83b217a3f42b89b997c879bab3435aea07 (patch)
tree032fe17b618350e94999a69753f4c31170b058d9
parent6d03107144eb478a91fddc219e460d68bc1fe017 (diff)
downloadpfsense-a2b58f83b217a3f42b89b997c879bab3435aea07.zip
pfsense-a2b58f83b217a3f42b89b997c879bab3435aea07.tar.gz
find_interface_ip() requires a real interface
-rwxr-xr-xetc/rc.newwanip2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 224c48d..edb1345 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -43,9 +43,9 @@ $argument = str_replace("\n", "", $argv[1]);
log_error("Informational: rc.newwanip is starting {$argument}.");
if($argument <> "") {
- $curwanip = find_interface_ip($argument);
$interface = convert_real_interface_to_friendly_interface_name($argument);
$interface_real = convert_friendly_interface_to_real_interface_name($argument);
+ $curwanip = find_interface_ip($interface_real);
if($curwanip == "")
$curwanip = get_current_wan_address();
} else {
OpenPOWER on IntegriCloud