luci-app-xinetd: ipv6 support for host fields

Change datatype to allow ipv4 and ipv6.

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
Change commit message
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Fritz D. Ansel 2021-08-02 20:35:38 +02:00 committed by Florian Eckert
parent 0402de12c4
commit f4c3b012db

View file

@ -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;