luci-base: static.js: fix validation of netmask option
authorJo-Philipp Wich <jo@mein.io>
Wed, 21 Feb 2024 14:38:37 +0000 (15:38 +0100)
committerPaul Donald <newtwen@gmail.com>
Thu, 7 Mar 2024 00:29:06 +0000 (01:29 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 06c0fbbef736c7d4976614467064d094af8ccf85)

modules/luci-base/htdocs/luci-static/resources/protocol/static.js

index 42ebcefba4124adb602a8c525e0c846019747c69..03a720cd1e6b84667e88a09dea2372190e796d35 100644 (file)
@@ -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
        }),