From d889c27b4bc77c18b83548a60412b1b418d77439 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 21 Jan 2025 09:30:32 +0100 Subject: [PATCH] luci-mod-network: fix disabling packet steering The default value of an empty option is enabled, not disabled. Signed-off-by: Felix Fietkau --- .../htdocs/luci-static/resources/view/network/interfaces.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); -- 2.30.2