Revision a1613b62
Added by Renato Botelho over 12 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
2433 | 2433 |
if(strcasecmp($ipaddr, $ilips) == 0) |
2434 | 2434 |
return true; |
2435 | 2435 |
} |
2436 |
|
|
2437 |
$interface_list_ips = get_configured_ip_aliases_list(); |
|
2438 |
foreach($interface_list_ips as $key => $ilips) { |
|
2439 |
if(strcasecmp($ipaddr, $key) == 0) |
|
2440 |
return true; |
|
2441 |
} |
|
2442 |
|
|
2443 |
$interface_list_ips = get_configured_carp_interface_list(); |
|
2444 |
foreach($interface_list_ips as $ilips) { |
|
2445 |
if(strcasecmp($ipaddr, $ilips) == 0) |
|
2446 |
return true; |
|
2447 |
} |
|
2448 |
|
|
2449 |
return false; |
|
2436 | 2450 |
} |
2437 | 2451 |
|
2438 | 2452 |
/****f* pfsense-utils/pfSense_handle_custom_code |
Also available in: Unified diff
is_ipaddr_configured() now returns VIPS