luci-app-strongswan-swanctl: refactoring interface listen option

* Remove placeholder and show the information in the detail option
  description as the placeholder information is not showen
* Make this option optional so if nothing is selected the strongswan
  charon is listen to 'all' interfaces. Therefor the default selection
  'wan' is also removed.
* Do not offer the creation of an interface as this is not needed at this
  configuration page.
* Fix naming for this option from 'listen' to 'interface'. This naming
  for this option is used in '/etc/init.d/swanctl' startup script.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2026-07-01 16:45:43 +02:00
committed by Florian Eckert
parent 354551fdf5
commit f10b6f9c5d
@@ -76,13 +76,12 @@ return view.extend({
s.anonymous = true;
s.addremove = true;
o = s.option(widgets.NetworkSelect, 'listen', _('Listening Interfaces'),
_('Interfaces that accept VPN traffic'));
o.datatype = 'interface';
o.placeholder = _('Select an interface or leave empty for all interfaces');
o.default = 'wan';
o = s.option(widgets.NetworkSelect, 'interface', _('Listening Interfaces'),
_('Interfaces that accept VPN traffic') + '<br /> ' +
_('Select an interface or leave empty for all interfaces'));
o.multiple = true;
o.rmempty = false;
o.nocreate = true;
o.optional = true;
o = s.option(form.Value, 'debug', _('Debug Level'),
_('Trace level: 0 is least verbose, 4 is most'));