From 06c0fbbef736c7d4976614467064d094af8ccf85 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 21 Feb 2024 15:38:37 +0100 Subject: [PATCH] luci-base: static.js: fix validation of netmask option Signed-off-by: Jo-Philipp Wich --- .../luci-base/htdocs/luci-static/resources/protocol/static.js | 1 + 1 file changed, 1 insertion(+) 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 }), -- 2.30.2