mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 14:54:36 +04:00
luci-proto-ipv6: map: allow /128 IPv6 prefix length
IPv6 prefix length is normally valid in the range 0–64. Additionally, /128 is a special case that needs to be supported. Signed-off-by: Arayuki Mago <ms@missing233.com>
This commit is contained in:
committed by
Paul Donald
parent
f8a28923b1
commit
183ab68aef
@@ -62,7 +62,7 @@ return network.registerProtocol('map', {
|
||||
|
||||
o = s.taboption('general', form.Value, 'ip6prefixlen', _('IPv6 prefix length'), _('The length of the IPv6 prefix in bits'));
|
||||
o.placeholder = '16';
|
||||
o.datatype = 'range(0,64)';
|
||||
o.datatype = 'or(range(0,64),128)';
|
||||
|
||||
o = s.taboption('general', form.Value, 'ealen', _('EA-bits length'));
|
||||
o.datatype = 'range(0,48)';
|
||||
|
||||
Reference in New Issue
Block a user