Skip to content

Commit

Permalink
banip: update 0.9.4-3
Browse files Browse the repository at this point in the history
* fix another logical glitch in the logfile monitor

Signed-off-by: Dirk Brenken <dev@brenken.org>
  • Loading branch information
dibdot committed Mar 4, 2024
1 parent 7bbd915 commit 4356180
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/banip/Makefile
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=banip
PKG_VERSION:=0.9.4
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>

Expand Down
5 changes: 4 additions & 1 deletion net/banip/files/banip-functions.sh
Expand Up @@ -1581,7 +1581,10 @@ f_monitor() {
while read -r line; do
proto=""
: >"${ban_rdapfile}"
[ -z "${daemon}" ] && daemon="$(printf "%s" "${line}" | "${ban_awkcmd}" 'BEGIN{RS="dropbear"}{if(!seen[RT]++)printf "%s",RT}')" || daemon="sshd"
if [ -z "${daemon}" ]; then
daemon="$(printf "%s" "${line}" | "${ban_awkcmd}" 'BEGIN{RS="dropbear"}{if(!seen[RT]++)printf "%s",RT}')"
[ -z "${daemon}" ] && daemon="sshd"
fi
ip="$(printf "%s" "${line}" | "${ban_awkcmd}" 'BEGIN{RS="(([0-9]{1,3}\\.){3}[0-9]{1,3})+"}{if(!seen[RT]++)printf "%s ",RT}')"
ip="$(f_trim "${ip}")"
ip="${ip##* }"
Expand Down

0 comments on commit 4356180

Please sign in to comment.