ipset: check dns before processing lists

This commit is contained in:
bol-van
2021-10-19 11:21:18 +03:00
parent cc85c1b489
commit e9b125e7ef
8 changed files with 144 additions and 116 deletions

View File

@@ -6,8 +6,10 @@ IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
. "$IPSET_DIR/def.sh"
# useful in case ipban set is used in custom scripts
getuser
FAIL=
getuser || FAIL=1
"$IPSET_DIR/create_ipset.sh"
[ -n "$FAIL" ] && exit
ZREESTR="$TMPDIR/zapret.txt"
#ZURL=https://reestr.rublacklist.net/api/current