luci-app-adbyby_plus: bugfix (#4020)

This commit is contained in:
Xiaofu 2020-03-26 00:39:09 +08:00 committed by CN_SZTL
parent be1db7fd77
commit e8b81e48fe
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -65,7 +65,7 @@ ip_rule()
ipset -N adbyby_esc hash:ip
$ipt_n -A ADBYBY -m set --match-set adbyby_esc dst -j RETURN
local icount=$(uci show unblockmusic | grep 'filter_mode' | wc -l)
local icount=$(uci show adbyby | grep 'filter_mode' | wc -l)
let icount=icount-1
for i in $(seq 0 $icount)
do
@ -92,7 +92,7 @@ ip_rule()
$ipt_n -A ADBYBY -m set ! --match-set adbyby_wan dst -j RETURN
;;
2)
$ipt_n -I ADBYBY -j RETURN
$ipt_n -A ADBYBY -j RETURN
;;
esac