diff options
author | Dirk Brenken <dev@brenken.org> | 2023-05-08 09:17:07 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2023-05-08 09:17:07 +0200 |
commit | f3054a90ea75dbe94c68716d1e316daa70c184b1 (patch) | |
tree | 73658069c7300e955b9e34bc17e9d447a96e1a29 | |
parent | 4e60a7f3fb641c2970b3b6e4a8c15cbed912fb08 (diff) |
banip: release 0.8.5-2
* fixed a log parser regression introduced in latest 0.8.4 update
Signed-off-by: Dirk Brenken <dev@brenken.org>
-rw-r--r-- | net/banip/Makefile | 2 | ||||
-rwxr-xr-x | net/banip/files/banip-service.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/banip/Makefile b/net/banip/Makefile index 07bad2213..fe74a723d 100644 --- a/net/banip/Makefile +++ b/net/banip/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banip PKG_VERSION:=0.8.5 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> diff --git a/net/banip/files/banip-service.sh b/net/banip/files/banip-service.sh index aadeae380..b67c5a0aa 100755 --- a/net/banip/files/banip-service.sh +++ b/net/banip/files/banip-service.sh @@ -192,7 +192,7 @@ if [ -x "${ban_logreadcmd}" ] && [ -n "${ban_logterm%%??}" ] && [ "${ban_loglimi if [ -n "${proto}" ] && ! "${ban_nftcmd}" get element inet banIP blocklist"${proto}" "{ ${ip} }" >/dev/null 2>&1; then f_log "info" "suspicious IP${proto} '${ip}'" log_raw="$("${ban_logreadcmd}" -l "${ban_loglimit}" 2>/dev/null)" - log_count="$(printf "%s\n" "${log_raw}" | grep -c "found '${ip}'")" + log_count="$(printf "%s\n" "${log_raw}" | grep -c "suspicious IP${proto} '${ip}'")" if [ "${log_count}" -ge "${ban_logcount}" ]; then if "${ban_nftcmd}" add element inet banIP "blocklist${proto}" "{ ${ip} ${nft_expiry} }" >/dev/null 2>&1; then f_log "info" "add IP${proto} '${ip}' (expiry: ${nft_expiry:-"-"}) to blocklist${proto} set" |