IPsec, regression in 7be00bc067, $right_spec translated to $ph1ent['remote-gateway'] for non-mobile in earlier versions. closes https://github.com/opnsense/core/issues/5187

This commit is contained in:
Ad Schellevis 2021-08-29 20:57:51 +02:00
parent b9b8fd9614
commit 293fe8ab43

View File

@ -436,7 +436,7 @@ function ipsec_parse_phase2($ikeid)
$result['leftsubnets'][] = $tmpsubnet;
}
if (!isset($ph2ent['mobile'])) {
$result['rightsubnets'][] = $right_spec;
$result['rightsubnets'][] = $ph1ent['remote-gateway'];
}
}
$uniqids[] = $ph2ent['uniqid'];