Project

General

Profile

« Previous | Next » 

Revision 9b915686

Added by Ermal LUÇI almost 11 years ago

Use a uniqid() to track phase2 entries to avoid confustion and various mistakes when modifying and editing them.

View differences:

etc/inc/upgrade_config.inc
3360 3360
	}
3361 3361
}
3362 3362

  
3363
function upgrade_109_to_110() {
3364
	global $config;
3365

  
3366
	if (!is_array($config['ipsec']) || !is_array($config['ipsec']['phase2']))
3367
		return;
3368

  
3369
	foreach ($config['ipsec']['phase2'] as &$rule) {
3370
		if (!empty($rule['uniqid']))
3371
			continue;
3372

  
3373
		$rule['uniqid'] = uniqid();
3374
	}
3375
}
3376

  
3363 3377
?>

Also available in: Unified diff