mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
IPSec: prepend keyid: to enforce type on rightid|leftid, ref https://forum.opnsense.org/index.php?topic=22197
This commit is contained in:
parent
cd2c3b08ca
commit
81fa4ec53d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user