From f4c3b012dbe63013072afd9063580b4e185bddd4 Mon Sep 17 00:00:00 2001 From: "Fritz D. Ansel" Date: Mon, 2 Aug 2021 20:35:38 +0200 Subject: [PATCH] luci-app-xinetd: ipv6 support for host fields Change datatype to allow ipv4 and ipv6. Signed-off-by: Fritz D. Ansel Change commit message Signed-off-by: Florian Eckert --- .../htdocs/luci-static/resources/view/xinetd/xinetd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 58364e136d..7550f2699f 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 @@ -96,7 +96,7 @@ return view.extend({ }; o = s.taboption('basic', form.DynamicList, 'only_from', _('Allowed hosts'), _('List of allowed hosts to access this service')); - o.datatype = 'host'; + o.datatype = 'or(ipaddr,ip6addr)'; o.cast = 'string'; o.modalonly = true; @@ -154,7 +154,7 @@ return view.extend({ // Advanced settings o = s.taboption('advanced', form.DynamicList, 'no_access', _('Forbidden hosts'), _('List of forbidden hosts to access this service')); - o.datatype = 'host'; + o.datatype = 'or(ipaddr,ip6addr)'; o.cast = 'string'; o.modalonly = true; -- 2.30.2