Projet

Général

Profil

« Précédent | Suivant » 

Révision 4cc2ae78

Ajouté par Renato Botelho il y a presque 10 ans

Revert "Fix #3700 and other syntax issues:"

This reverts commit e912bfae186b6b657daf52607f9d027f46be0478.

Voir les différences:

etc/inc/interfaces.inc
1314 1314
		services_dhcpd_configure('inet6', $track6);
1315 1315
	}
1316 1316

  
1317
	$old_router = '';
1318 1317
	if (file_exists("{$g['tmp_path']}/{$realif}_router"))
1319 1318
		$old_router = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"));
1320 1319
//	log_error("Checking for old router states: {$g['tmp_path']}/{$realif}_router = {$old_router}");
1321 1320
	if (!empty($old_router)) {
1322 1321
		log_error("Clearing states to old gateway {$old_router}.");
1323
		mwexec("/sbin/pfctl -i " . escapeshellarg($realif) . " -Fs");
1322
		mwexec("/sbin/pfctl -i " . escapeshellarg($realif) . " -Fs -G {$old_router}");
1324 1323
	}
1325 1324

  
1326 1325
	/* remove interface up file if it exists */

Formats disponibles : Unified diff