Addition of iptables rules for mwan3 sticky rules is broken, resulting
in non-working sticky rules. The required parameters for the function
'mwan3_set_sticky_iptables' were passed in the wrong order.
Signed-off-by: Anna Tikhomirova <redacted>
* Update commit message
* Quoting function arguments
Signed-off-by: Florian Eckert <redacted>
mwan3_set_sticky_iptables()
{
- local rule="${1}"
- local interface="${2}"
+ local interface="${1}"
+ local rule="${2}"
local ipv="${3}"
local policy="${4}"
fi
mwan3_push_update -F "mwan3_rule_$1"
- config_foreach mwan3_set_sticky_iptables interface $ipv "$policy"
+ config_foreach mwan3_set_sticky_iptables interface "$rule" "$ipv" "$policy"
mwan3_push_update -A "mwan3_rule_$1" \