mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
interfaces: change get_interface_ip() internals #4749
This commit is contained in:
parent
65779b80bb
commit
6f887fa213
@ -3983,9 +3983,9 @@ function get_interface_ip($interface = 'wan', $ifconfig_details = null)
|
||||
return get_configured_carp_interface_list($interface);
|
||||
}
|
||||
|
||||
$realif = get_real_interface($interface, $ifconfig_details);
|
||||
list ($ip) = interfaces_primary_address($interface, null, $ifconfig_details);
|
||||
|
||||
return find_interface_ip($realif);
|
||||
return $ip;
|
||||
}
|
||||
|
||||
function get_interface_ipv6($interface = 'wan', $ifconfig_details = null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user