mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
VPN: IPsec: Advanced Settings - skip empty values and leave them default when generating strongswan.conf via our model. for https://github.com/opnsense/core/issues/7648
This commit is contained in:
parent
b3aa910438
commit
2c60ff3d5f
@ -192,7 +192,7 @@ class IPsec extends BaseModel
|
||||
$result[$key] = $this->traverseItems($item);
|
||||
} elseif (is_a($item, "OPNsense\\Base\\FieldTypes\\BooleanField")) {
|
||||
$result[$key] = !empty((string)$item) ? 'yes' : 'no';
|
||||
} else {
|
||||
} elseif ((string)$item != '') {
|
||||
$result[$key] = (string)$item;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user