Project

General

Profile

« Previous | Next » 

Revision 89953fe7

Added by Chris Buechler about 10 years ago

Return IP correctly in get_interface_ip for gateway groups specifying a
VIP. Ticket #4661

View differences:

etc/inc/interfaces.inc
5302 5302
	if (substr($realif, 0, 4) == '_vip') {
5303 5303
		return get_configured_carp_interface_list($realif, 'inet', 'ip');
5304 5304
	}
5305
	
5306
	if (strstr($realif, "_vip")) {
5307
		return get_configured_carp_interface_list($realif);
5308
	}
5305 5309

  
5306 5310
	$curip = find_interface_ip($realif);
5307 5311
	if ($curip && is_ipaddr($curip) && ($curip != "0.0.0.0")) {

Also available in: Unified diff