From: Felix Fietkau Date: Tue, 21 Jan 2025 08:30:32 +0000 (+0100) Subject: luci-mod-network: fix disabling packet steering X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d889c27b4bc77c18b83548a60412b1b418d77439;p=project%2Fluci.git luci-mod-network: fix disabling packet steering The default value of an empty option is enabled, not disabled. Signed-off-by: Felix Fietkau --- 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 322d4bae13..8652e44c58 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 @@ -1572,9 +1572,10 @@ return view.extend({ o.datatype = 'cidr6'; o = s.option(form.ListValue, 'packet_steering', _('Packet Steering'), _('Enable packet steering across CPUs. May help or hinder network speed.')); - o.value('', _('Disabled')); + o.value('0', _('Disabled')); o.value('1',_('Enabled')); o.value('2',_('Enabled (all CPUs)')); + o.default = '1'; o.optional = true; var steer_flow = uci.get('network', 'globals', 'steering_flows');