luci-mod-network: fix DHCP ip constraint (masks generate "bad address")

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald 2024-11-28 19:30:01 +01:00
parent 22ea96b6d8
commit bbc4a90925

View 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 = {};