luci-mod-network: fix DHCP ip constraint (masks generate "bad address")
authorPaul Donald <[email protected]>
Thu, 28 Nov 2024 18:30:01 +0000 (19:30 +0100)
committerPaul Donald <[email protected]>
Thu, 28 Nov 2024 18:30:01 +0000 (19:30 +0100)
Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 16db7ed0ef3fc3ef30c61c6561576d71e063b900..28d824a08e04b208ef9485d38acbfb601c75295f 100644 (file)
@@ -1039,7 +1039,7 @@ return view.extend({
 
                so = ss.option(form.Value, 'ip', _('IP address'));
                so.rmempty = false;
-               so.datatype = 'ipaddr';
+               so.datatype = 'ipaddr("nomask")';
 
                var ipaddrs = {};