diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-09 20:02:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-09 20:02:32 +0000 |
commit | e8721ce512a6f0bd65d6f3fc53f8df1ae4f368d8 (patch) | |
tree | 631f8cd845c058c609cd19d8081c824c5890934a | |
parent | c3bb613a2cb16ecfc1f8c7593496a9b42e275b9f (diff) | |
download | pfsense-e8721ce512a6f0bd65d6f3fc53f8df1ae4f368d8.zip pfsense-e8721ce512a6f0bd65d6f3fc53f8df1ae4f368d8.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 6653d78..fc539c1 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 { |