Project

General

Profile

« Previous | Next » 

Revision 1c9bf396

Added by Fredrik Rönnvall over 8 years ago

Fix bug where CARP vip status is incorrent in the interface when more
than one CARP vip is configured for an interface.

(cherry picked from commit 5116a8aa60ad87c0a47aafeca422cc323147ea14)

View differences:

src/etc/inc/pfsense-utils.inc
661 661
	$interface = get_real_interface($carpiface);
662 662
	if ($interface == NULL)
663 663
		return "";
664
	$vip = get_configured_vip($carpid);
665
	if ($vip == NULL || !isset($vip['vhid']))
666
		return "";
664 667

  
665
	$vhid = $carp['vhid'];
668
	$vhid = $vip['vhid'];
666 669
	$carp_query = '';
667 670
	$_gb = exec("/sbin/ifconfig $interface | /usr/bin/grep carp: | /usr/bin/grep \"vhid $vhid\"", $carp_query);
668 671
	foreach ($carp_query as $int) {

Also available in: Unified diff