From: Fritz D. Ansel Date: Mon, 2 Aug 2021 18:35:38 +0000 (+0200) Subject: luci-app-xinetd: ipv6 support for host fields X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=f4c3b012dbe63013072afd9063580b4e185bddd4;p=project%2Fluci.git 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 --- 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;