mwan3: fix variable naming
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 7 Nov 2019 12:55:27 +0000 (13:55 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 14 Nov 2019 06:57:11 +0000 (07:57 +0100)
The variable IPT is not valid at this point. Set the variable usage to IPT4
fixes this issue.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/lib/mwan3/mwan3.sh

index ae7b398aa9377454359dc5182d37296d637ed4f8..88159e8b95c829f660db38cd66151a479846774e 100644 (file)
@@ -1004,7 +1004,7 @@ mwan3_set_user_iptables_rule()
                        case $proto in
                                tcp|udp)
                                [ "$global_logging" = "1" ] && [ "$rule_logging" = "1" ] && {
-                                       $IPT -A mwan3_rules \
+                                       $IPT4 -A mwan3_rules \
                                                -p $proto \
                                                -s $src_ip \
                                                -d $dest_ip $ipset \