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:
Arayuki Mago
2025-09-02 00:51:33 +09:00
committed by Paul Donald
parent f8a28923b1
commit 183ab68aef

View File

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