luci-mod-network: fix disabling packet steering
authorFelix Fietkau <nbd@nbd.name>
Tue, 21 Jan 2025 08:30:32 +0000 (09:30 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 21 Jan 2025 08:30:53 +0000 (09:30 +0100)
The default value of an empty option is enabled, not disabled.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 322d4bae1368a51fb2c233c9785f1091346a2f1f..8652e44c58a9fb9206dcbd957d12ddba2846c59f 100644 (file)
@@ -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');