diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 10c3ff9..eb32435 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -3770,6 +3770,7 @@ function upgrade_117_to_118() { $a_phase1 =& $config['ipsec']['phase1']; foreach ($a_phase1 as &$ph1_entry) { + // update asn1dn strings from racoon's format to strongswan's if (isset($ph1_entry['myid_type']) && $ph1_entry['myid_type'] == 'asn1dn') { $ph1_entry['myid_data'] = preg_replace('/\/\s*emailAddress\s*=\s*/', ', E=', $ph1_entry['myid_data']); @@ -3778,6 +3779,10 @@ function upgrade_117_to_118() { $ph1_entry['peerid_data'] = preg_replace('/\/\s*emailAddress\s*=\s*/', ', E=', $ph1_entry['peerid_data']); } + // iketype 'auto' was removed and is really v2, update accordingly + if ($ph1_entry['iketype'] == "auto") { + $ph1_entry['iketype'] = "ikev2"; + } } } |