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>
};
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;
// 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;