From: Aaron Goodman Date: Thu, 16 Jul 2020 06:09:11 +0000 (-0400) Subject: mwan3: don't send iptable setup failures to /dev/null X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=702a104f9c516fdddd5e71207d1ad91eb70f9a41;p=feed%2Fpackages.git mwan3: don't send iptable setup failures to /dev/null silencing failing rules makes debugging more difficult Signed-off-by: Aaron Goodman --- diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh index 96fdca966a..f4bfc37e9a 100644 --- a/net/mwan3/files/lib/mwan3/mwan3.sh +++ b/net/mwan3/files/lib/mwan3/mwan3.sh @@ -1023,7 +1023,7 @@ mwan3_set_user_iptables_rule() ${dest_port:+-m} ${dest_port:+multiport} ${dest_port:+--dports} $dest_port \ -m mark --mark 0/$MMX_MASK \ -m comment --comment "$1" \ - -j LOG --log-level "$loglevel" --log-prefix "MWAN3($1)" &> /dev/null + -j LOG --log-level "$loglevel" --log-prefix "MWAN3($1)" } $IPT -A mwan3_rules \ @@ -1035,7 +1035,7 @@ mwan3_set_user_iptables_rule() ${src_port:+-m} ${src_port:+multiport} ${src_port:+--sports} $src_port \ ${dest_port:+-m} ${dest_port:+multiport} ${dest_port:+--dports} $dest_port \ -m mark --mark 0/$MMX_MASK \ - -j $policy &> /dev/null + -j $policy done fi }