summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd
diff options
context:
space:
mode:
authorHelge Mader <ma@dev.tdt.de>2023-01-11 13:06:58 +0100
committerHelge Mader <ma@dev.tdt.de>2023-01-11 13:09:47 +0100
commit2947b4507302524128569df604e08c03c81c8749 (patch)
tree298192e54ce73f71009f4c082e80aa365904a38c /applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd
parentec3aac47c43d44d170af6a09d31493c2e8efe590 (diff)
luci-app-xinetd: add processing of redirect option
Signed-off-by: Helge Mader <ma@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd')
-rw-r--r--applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd/xinetd.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd/xinetd.js b/applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd/xinetd.js
index 1faf2a46fd..5810f5be43 100644
--- a/applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd/xinetd.js
+++ b/applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd/xinetd.js
@@ -50,6 +50,9 @@ return view.extend({
};
o.modalonly = false;
+ o = s.option(form.DummyValue, 'redirect', _('Redirect'));
+ o.modalonly = false;
+
o = s.option(form.DummyValue, 'disable', _('Enabled'));
o.cfgvalue = function(section) {
return (uci.get('xinetd', section, 'disable') == "no") ? _("yes") : _("no");
@@ -130,6 +133,10 @@ return view.extend({
o.rmempty = false;
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.datatype = 'string';
o.rmempty = false;