mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Skip empty IPsec P1 during upgrade to 17.5. Fixes #9083
This commit is contained in:
parent
5514e36842
commit
024e5de242
@ -5489,9 +5489,13 @@ function upgrade_173_to_174() {
|
||||
*/
|
||||
function upgrade_174_to_175() {
|
||||
global $config;
|
||||
init_config_arr(array('ipsec', 'phase1'));
|
||||
if (is_array($config['ipsec']['phase1'])) {
|
||||
$a_phase1 = &$config['ipsec']['phase1'];
|
||||
foreach($a_phase1 as &$phase1) {
|
||||
if (empty($phase1)) {
|
||||
continue;
|
||||
}
|
||||
$item = array();
|
||||
$item['encryption-algorithm'] = $phase1['encryption-algorithm'];
|
||||
$item['hash-algorithm'] = $phase1['hash-algorithm'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user