fix adbyby warning when clean-up black ip list

This commit is contained in:
coolsnowwolf 2017-09-09 03:28:15 +08:00
parent 15feef587d
commit 7c1852edc1
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ LUCI_DEPENDS:=+adbyby +wget +ipset +coreutils +coreutils-nohup +dnsmasq-full
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-adbyby-plus
PKG_VERSION:=2.0
PKG_RELEASE:=17
PKG_RELEASE:=18
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -81,7 +81,7 @@ ip_rule()
echo "create blockip hash:net family inet hashsize 1024 maxelem 65536" > /tmp/blockip.ipset
awk '!/^$/&&!/^#/{printf("add blockip %s'" "'\n",$0)}' /usr/share/adbyby/blockip.conf >> /tmp/blockip.ipset
ipset -! restore < /tmp/blockip.ipset
ipset -! restore < /tmp/blockip.ipset 2>/dev/null
iptables -I FORWARD -m set --match-set blockip dst -j DROP
iptables -I OUTPUT -m set --match-set blockip dst -j DROP
}
@ -173,6 +173,7 @@ start()
mount --bind /tmp/adbyby/data $PROG_PATH/data
fi
fi
echo "add adbyby rules"
add_rules
$PROG_PATH/adbyby &>/dev/null &
add_dns