summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-06-09 20:02:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-06-09 20:02:32 +0000
commite8721ce512a6f0bd65d6f3fc53f8df1ae4f368d8 (patch)
tree631f8cd845c058c609cd19d8081c824c5890934a
parentc3bb613a2cb16ecfc1f8c7593496a9b42e275b9f (diff)
downloadpfsense-e8721ce512a6f0bd65d6f3fc53f8df1ae4f368d8.zip
pfsense-e8721ce512a6f0bd65d6f3fc53f8df1ae4f368d8.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 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 {
OpenPOWER on IntegriCloud