IPSec: prepend fqdn when selected, related to https://github.com/opnsense/core/issues/4860

This commit is contained in:
Ad Schellevis 2021-04-28 09:25:04 +02:00
parent 45b697f6db
commit 761e55184c

View File

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