From 12f6888abcadbb1f1d8d054be14f32322526f010 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 10 Sep 2026 11:41:43 +0200 Subject: [PATCH] luci-app-strongswan-swanctl: rename dpdaction to dpd_action, drop "none" Update form field to match the renamed 'dpd_action' uci option. Remove the 'none' choice from the dropdown, since it has no swanctl equivalent and is no longer accepted by the backend. If nothing is specified, 'clear' is used by default in strongswan. Therefore, this is not included in the configuration. Signed-off-by: Florian Eckert --- .../resources/view/strongswan-swanctl/swanctl.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/applications/luci-app-strongswan-swanctl/htdocs/luci-static/resources/view/strongswan-swanctl/swanctl.js b/applications/luci-app-strongswan-swanctl/htdocs/luci-static/resources/view/strongswan-swanctl/swanctl.js index 3d750f8fe3..44bb567855 100644 --- a/applications/luci-app-strongswan-swanctl/htdocs/luci-static/resources/view/strongswan-swanctl/swanctl.js +++ b/applications/luci-app-strongswan-swanctl/htdocs/luci-static/resources/view/strongswan-swanctl/swanctl.js @@ -359,12 +359,13 @@ return view.extend({ o.datatype = 'file'; o.modalonly = true; - o = s.taboption('advanced', form.ListValue, 'dpdaction', _('DPD Action'), + o = s.taboption('advanced', form.ListValue, 'dpd_action', _('DPD Action'), _('Action when DPD timeout occurs')); - o.value('none'); - o.value('clear'); + o.value('', '%s (%s)'.format('clear', _('default'))); o.value('trap'); o.value('start'); + o.default = 'clear'; + o.rmempty = true; o.optional = true; o.modalonly = true;