Skip to content

Commit

Permalink
Bug in get_interface_ip
Browse files Browse the repository at this point in the history
Global variable $config was not available, and IP was always fetched using find_interface_ip
  • Loading branch information
jackfagner committed Nov 21, 2017
1 parent 158999e commit 5f56dee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/etc/inc/interfaces.inc
Expand Up @@ -5890,7 +5890,8 @@ function get_possible_traffic_source_addresses($include_ipv6_link_local=false) {
}

function get_interface_ip($interface = "wan") {

global $config;

if (substr($interface, 0, 4) == '_vip') {
return get_configured_vip_ipv4($interface);
} else if (substr($interface, 0, 5) == '_lloc') {
Expand Down

0 comments on commit 5f56dee

Please sign in to comment.