mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If for some reason we fail to get the wanip, use get_current_wan_address();
This commit is contained in:
parent
246e770c6a
commit
33cbbb6007
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user