From 2a96307ad118179c86aae60bbc91a165f66f5027 Mon Sep 17 00:00:00 2001 From: Andrea Pesaresi Date: Tue, 30 Apr 2024 20:19:18 +0200 Subject: luci-mod-network: steering flow - permit only integer value An user can insert a strange value right now, with this commit, only integer value can be insert. Signed-off-by: Andrea Pesaresi --- .../htdocs/luci-static/resources/view/network/interfaces.js | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/luci-mod-network') diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 57bb24f9a9..35bb21b8fa 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1611,6 +1611,7 @@ return view.extend({ o.value('256', _('256')); o.depends('packet_steering', '1'); o.depends('packet_steering', '2'); + o.datatype = 'uinteger'; o.default = steer_flow; if (dslModemType != null) { -- cgit v1.2.3