From: Jo-Philipp Wich Date: Wed, 21 Feb 2024 14:38:37 +0000 (+0100) Subject: luci-base: static.js: fix validation of netmask option X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=297221c6664fae8d520d3ef54d677cbb8eb89728;p=project%2Fluci.git luci-base: static.js: fix validation of netmask option Signed-off-by: Jo-Philipp Wich (cherry picked from commit 06c0fbbef736c7d4976614467064d094af8ccf85) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/static.js b/modules/luci-base/htdocs/luci-static/resources/protocol/static.js index 42ebcefba4..03a720cd1e 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/static.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/static.js @@ -126,6 +126,7 @@ return network.registerProtocol('static', { return form.Value.prototype.render.apply(this, [ option_index, section_id, in_table ]); }, + datatype: 'ip4addr("true")', validate: validateBroadcast }),