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)
committerJo-Philipp Wich <jo@mein.io>
Wed, 21 Feb 2024 14:38:37 +0000 (15:38 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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
        }),