mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
is_ipaddr_configured() now returns VIPS
This commit is contained in:
parent
2bbc542949
commit
a1613b62bb
@ -2433,6 +2433,20 @@ function is_ipaddr_configured($ipaddr) {
|
||||
if(strcasecmp($ipaddr, $ilips) == 0)
|
||||
return true;
|
||||
}
|
||||
|
||||
$interface_list_ips = get_configured_ip_aliases_list();
|
||||
foreach($interface_list_ips as $key => $ilips) {
|
||||
if(strcasecmp($ipaddr, $key) == 0)
|
||||
return true;
|
||||
}
|
||||
|
||||
$interface_list_ips = get_configured_carp_interface_list();
|
||||
foreach($interface_list_ips as $ilips) {
|
||||
if(strcasecmp($ipaddr, $ilips) == 0)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/****f* pfsense-utils/pfSense_handle_custom_code
|
||||
|
||||
Loading…
Reference in New Issue
Block a user