summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Brenken2026-02-08 11:55:25 +0000
committerDirk Brenken2026-02-08 11:55:25 +0000
commit2921e52cd87c948f484cd704de189ff9e082d078 (patch)
treebbef8d3dc7c6af8d989c3f74a2acb3ddfebeaf5d
parentb39494cf3fa2b17ec90c8653c68bb903f7e7ff57 (diff)
downloadpackages-2921e52cd87c948f484cd704de189ff9e082d078.tar.gz
adblock: update 4.5.1-2
* make sure to only return exactly one MAC address in the cgi Signed-off-by: Dirk Brenken <dev@brenken.org>
-rw-r--r--net/adblock/Makefile2
-rw-r--r--net/adblock/files/adblock.cgi2
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 <dev@brenken.org>
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