IPSec: prepend keyid: to enforce type on rightid|leftid, ref https://forum.opnsense.org/index.php?topic=22197

This commit is contained in:
Ad Schellevis 2021-03-21 20:10:45 +01:00
parent cd2c3b08ca
commit 81fa4ec53d

View File

@ -811,6 +811,9 @@ function ipsec_find_id(&$ph1ent, $side = 'local')
case "peeraddress":
$thisid_data = ipsec_resolve($ph1ent['remote-gateway']);
break;
case "keyid tag":
$thisid_data = !empty($id_data) ? "keyid:{$id_data}" : null;
break;
default:
$thisid_data = !empty($id_data) ? "{$id_data}" : null;
break;