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:
parent
0402de12c4
commit
f4c3b012db
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue