diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-09 20:02:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-09 20:02:25 +0000 |
commit | a2b58f83b217a3f42b89b997c879bab3435aea07 (patch) | |
tree | 032fe17b618350e94999a69753f4c31170b058d9 | |
parent | 6d03107144eb478a91fddc219e460d68bc1fe017 (diff) | |
download | pfsense-a2b58f83b217a3f42b89b997c879bab3435aea07.zip pfsense-a2b58f83b217a3f42b89b997c879bab3435aea07.tar.gz |
find_interface_ip() requires a real interface
-rwxr-xr-x | etc/rc.newwanip | 2 |
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 { |