Project

General

Profile

« Previous | Next » 

Revision bdd9efb3

Added by Chris Buechler almost 10 years ago

change iketype auto to ikev2 on upgrade. Ticket #4873

View differences:

etc/inc/upgrade_config.inc
3770 3770
	$a_phase1 =& $config['ipsec']['phase1'];
3771 3771

  
3772 3772
	foreach ($a_phase1 as &$ph1_entry) {
3773
		// update asn1dn strings from racoon's format to strongswan's 
3773 3774
		if (isset($ph1_entry['myid_type']) && $ph1_entry['myid_type'] == 'asn1dn') {
3774 3775
			$ph1_entry['myid_data'] =
3775 3776
			    preg_replace('/\/\s*emailAddress\s*=\s*/', ', E=', $ph1_entry['myid_data']);
......
3778 3779
			$ph1_entry['peerid_data'] =
3779 3780
			    preg_replace('/\/\s*emailAddress\s*=\s*/', ', E=', $ph1_entry['peerid_data']);
3780 3781
		}
3782
		// iketype 'auto' was removed and is really v2, update accordingly
3783
		if ($ph1_entry['iketype'] == "auto") {
3784
			$ph1_entry['iketype'] = "ikev2";
3785
		}
3781 3786
	}
3782 3787
}
3783 3788

  

Also available in: Unified diff