Skip to content

Commit

Permalink
luci-mod-network: fix disabling packet steering
Browse files Browse the repository at this point in the history
The default value of an empty option is enabled, not disabled.

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Jan 21, 2025
1 parent 645faa7 commit d889c27
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d889c27

Please sign in to comment.