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:33 +0000 (19:30 +0100)
Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit bbc4a909255c34630f7710aff636c519a12318bd)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

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