summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-xinetd/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorFritz D. Ansel <fdansel@yandex.ru>2021-08-02 20:34:08 +0200
committerFlorian Eckert <fe@dev.tdt.de>2021-08-17 10:27:58 +0200
commit0402de12c4d4b7bf630fc342a62266a046b06f57 (patch)
tree0c2fec8cc0ef2c2f55e323ffe3d9c45ca3276295 /applications/luci-app-xinetd/htdocs/luci-static/resources/view
parentc700cbc59e052602d0b295e3c08a448b8e6f5e29 (diff)
luci-app-xinetd: add ipv6 support
Before the change xinetd could only be configured for ipv4. Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru> Change commit message Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-xinetd/htdocs/luci-static/resources/view')
-rw-r--r--applications/luci-app-xinetd/htdocs/luci-static/resources/view/xinetd/xinetd.js13
1 files changed, 13 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 5660b26ba2..58364e136d 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
@@ -40,6 +40,12 @@ return view.extend({
o = s.option(form.DummyValue, 'server', _('Server'));
o.modalonly = false;
+ o = s.option(form.DummyValue, 'flags', _('IPv6'));
+ o.cfgvalue = function(section) {
+ return (uci.get('xinetd', section, 'flags') == "IPv6") ? _("yes") : _("no");
+ };
+ o.modalonly = false;
+
o = s.option(form.DummyValue, 'disable', _('Enabled'));
o.cfgvalue = function(section) {
return (uci.get('xinetd', section, 'disable') == "no") ? _("yes") : _("no");
@@ -59,6 +65,13 @@ return view.extend({
o.rmempty = false;
o.modalonly = true;
+ o = s.taboption('basic', form.Flag, 'flags', _('IPv6'), _('Listen on IPv6 additional'));
+ o.enabled = 'IPv6';
+ o.disabled = 'IPv4';
+ o.default = o.disabled;
+ o.rmempty = false;
+ o.modalonly = true;
+
o = s.taboption('basic', form.ListValue, 'protocol', _('Protocol'), _('The protocol to be used for this service'));
o.default = 'tcp';
o.value('tcp', _('TCP'));