VPN: IPsec: Mobile & Advanced Settings - copy "Split DNS name" to undocumented "25", closes https://github.com/opnsense/core/issues/8552

* https://docs.strongswan.org/docs/latest/plugins/attr.html
* https://lists.strongswan.org/pipermail/dev/2019-May/001994.html
This commit is contained in:
Ad Schellevis 2025-04-15 14:10:34 +02:00
parent b87eba3085
commit 6d579db491
2 changed files with 4 additions and 1 deletions

View File

@ -223,6 +223,10 @@ class IPsec extends BaseModel
if ($target_key == '28672') {
/* Unity login banner, needs to be wrapped? */
$result[$target_key] = '"' . str_replace(['\\', '"'], '', (string)$item) . '"';
} elseif ($target_key == '28675') {
/* 28675 (splitdns name) is equal/similar to 25 (INTERNAL_DNS_DOMAIN) */
$result['25'] = (string)$item;
$result[$target_key] = (string)$item;
} else {
$result[$target_key] = (string)$item;
}

View File

@ -113,7 +113,6 @@
<!-- UNITY_DEF_DOMAIN -->
<x_28674 type="TextField"/>
<x_28675 type="TextField"/>
<x_25 type="TextField"/>
<x_28672 type="TextField"/>
<x_28673 type="BooleanField"/>
<x_28679 type="OptionField">