From: Oskari Rauta Date: Mon, 15 Nov 2021 23:15:05 +0000 (+0200) Subject: banip: update nginx matching X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1441366364effa0c90aca739fd05699f2f3c8d57;p=feed%2Fpackages.git banip: update nginx matching Currently banip matches nginx log entries starting with nginx[number]:... I am running a containerized nginx with alpine as base, which ends up adding log entries without [number] part.. like this: nginx:... This patch updates regex for nginx log entry search to include both versions. Signed-off-by: Oskari Rauta --- diff --git a/net/banip/Makefile b/net/banip/Makefile index ca159c3ed0..c210c96a53 100644 --- a/net/banip/Makefile +++ b/net/banip/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banip PKG_VERSION:=0.7.10 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken diff --git a/net/banip/files/banip.sh b/net/banip/files/banip.sh index 34ebe5e46b..8672ead225 100755 --- a/net/banip/files/banip.sh +++ b/net/banip/files/banip.sh @@ -813,7 +813,7 @@ f_bgsrv() { ban_search="${ban_search}luci: failed login|" fi if printf "%s\n" "${ban_logterms}" | grep -q "nginx"; then - ban_search="${ban_search}nginx\[[0-9]+\]:.*\[error\].*open().*client: [[:alnum:].:]+|" + ban_search="${ban_search}nginx(\[[0-9]+\])?:.*\[error\].*open().*client: [[:alnum:].:]+|" fi ( "${ban_logservice}" "${ban_search%?}" &