mwan3: fix variable naming
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>
(cherry picked from commit 581d7df844
)
This commit is contained in:
parent
5bf733c2d2
commit
c2cd3f0997
1 changed files with 1 additions and 1 deletions
|
@ -1004,7 +1004,7 @@ mwan3_set_user_iptables_rule()
|
||||||
case $proto in
|
case $proto in
|
||||||
tcp|udp)
|
tcp|udp)
|
||||||
[ "$global_logging" = "1" ] && [ "$rule_logging" = "1" ] && {
|
[ "$global_logging" = "1" ] && [ "$rule_logging" = "1" ] && {
|
||||||
$IPT -A mwan3_rules \
|
$IPT4 -A mwan3_rules \
|
||||||
-p $proto \
|
-p $proto \
|
||||||
-s $src_ip \
|
-s $src_ip \
|
||||||
-d $dest_ip $ipset \
|
-d $dest_ip $ipset \
|
||||||
|
|
Loading…
Reference in a new issue