Projet

Général

Profil

« Précédent | Suivant » 

Révision 7d0f4544

Ajouté par Scott Ullrich il y a plus de 18 ans

Do not return so early so that pfsync gets redirected to loopback

Ticket #761

Voir les différences:

etc/inc/interfaces.inc
351 351
		$mt = microtime();
352 352
		echo "interfaces_carp_configure() being called $mt\n";
353 353
	}
354
	if(!$config['installedpackages']['carpsettings']['config'])
355
		return;	
356
	if ($g['booting'] and !$debugging) {
357
		echo "Configuring CARP interfaces...";
358
		mute_kernel_msgs();
359
	}
360 354
	/* if neither items are arrays then redirect pfsync to loopback */
361 355
	if (!is_array($config['virtualip']['vip']) or
362 356
	    !is_array($config['installedpackages']['carpsettings']['config'])) {
......
367 361
		}
368 362
		return;
369 363
	}
364
	if(!$config['installedpackages']['carpsettings']['config'])
365
		return;	
366
	if ($g['booting'] and !$debugging) {
367
		echo "Configuring CARP interfaces...";
368
		mute_kernel_msgs();
369
	}	
370 370
	foreach($config['installedpackages']['carpsettings']['config'] as $carp) {
371 371
		if($carp['pfsyncenabled'] != "") {
372 372
			mwexec("/sbin/sysctl net.inet.carp.allow=1");

Formats disponibles : Unified diff