Merge pull request #6194 from TDT-AG/pr/20230111-luci-app-xinetd
luci-app-xinetd: add processing of redirect option
This commit is contained in:
commit
13b759897b
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,9 @@ return view.extend({
|
||||||
};
|
};
|
||||||
o.modalonly = false;
|
o.modalonly = false;
|
||||||
|
|
||||||
|
o = s.option(form.DummyValue, 'redirect', _('Redirect'));
|
||||||
|
o.modalonly = false;
|
||||||
|
|
||||||
o = s.option(form.DummyValue, 'disable', _('Enabled'));
|
o = s.option(form.DummyValue, 'disable', _('Enabled'));
|
||||||
o.cfgvalue = function(section) {
|
o.cfgvalue = function(section) {
|
||||||
return (uci.get('xinetd', section, 'disable') == "no") ? _("yes") : _("no");
|
return (uci.get('xinetd', section, 'disable') == "no") ? _("yes") : _("no");
|
||||||
|
@ -130,6 +133,10 @@ return view.extend({
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
|
|
||||||
|
o = s.taboption('basic', form.Value, 'redirect', _('Redirect'), _('Redirect incoming requests to this IP address:port.'));
|
||||||
|
o.datatype = 'ipaddrport(1)';
|
||||||
|
o.modalonly = true;
|
||||||
|
|
||||||
o = s.taboption('basic', form.Value, 'server', _('Server'), _('Complete path to the executable server file'));
|
o = s.taboption('basic', form.Value, 'server', _('Server'), _('Complete path to the executable server file'));
|
||||||
o.datatype = 'string';
|
o.datatype = 'string';
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
|
|
Loading…
Reference in a new issue