If for some reason we fail to get the wanip, use get_current_wan_address();

This commit is contained in:
Scott Ullrich 2005-11-25 20:06:59 +00:00
parent 246e770c6a
commit 33cbbb6007

View File

@ -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";