luci-app-xinetd: add processing of redirect option 6194/head
authorHelge Mader <ma@dev.tdt.de>
Wed, 11 Jan 2023 12:06:58 +0000 (13:06 +0100)
committerHelge Mader <ma@dev.tdt.de>
Wed, 11 Jan 2023 12:09:47 +0000 (13:09 +0100)
Signed-off-by: Helge Mader <ma@dev.tdt.de>
applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd/xinetd.js

index 1faf2a46fd06482f1a546538205f7aa8a48f19b6..5810f5be4324ba4504e3d261e8222ca7f952ed28 100644 (file)
@@ -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;