From 2921e52cd87c948f484cd704de189ff9e082d078 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sun, 8 Feb 2026 12:55:25 +0100 Subject: [PATCH] adblock: update 4.5.1-2 * make sure to only return exactly one MAC address in the cgi Signed-off-by: Dirk Brenken --- net/adblock/Makefile | 2 +- net/adblock/files/adblock.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/adblock/Makefile b/net/adblock/Makefile index 97638ee92f..7f436c3172 100644 --- a/net/adblock/Makefile +++ b/net/adblock/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock PKG_VERSION:=4.5.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken diff --git a/net/adblock/files/adblock.cgi b/net/adblock/files/adblock.cgi index b58b89c9cc..f78858be97 100644 --- a/net/adblock/files/adblock.cgi +++ b/net/adblock/files/adblock.cgi @@ -23,7 +23,7 @@ query_mode="$(printf "%s" "${query_str}" | sed -n 's/.*mode=\([^&]*\).*/\1/p' 2> # if [ -z "${query_mac}" ]; then query_ip="${REMOTE_ADDR}" - query_mac="$(ip neigh show 2>/dev/null | awk -v ip="${query_ip}" '$1==ip {print $5}' 2>/dev/null)" + query_mac="$(ip neigh show 2>/dev/null | awk -v ip="${query_ip}" '$1==ip {print $5; exit}' 2>/dev/null)" fi # validate MAC address