diff --git a/net/adblock/Makefile b/net/adblock/Makefile index bc6148db30..7b6063886b 100644 --- a/net/adblock/Makefile +++ b/net/adblock/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock PKG_VERSION:=4.5.4 -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 6453025229..cc35fc84ed 100644 --- a/net/adblock/files/adblock.cgi +++ b/net/adblock/files/adblock.cgi @@ -177,7 +177,7 @@ function stopRefresh() { if [ "${nft_remote}" != "1" ] || [ -z "${nft_macremote}" ]; then printf '%s\n' "
- Remote allow is not enabled or no MAC addresses configured + Adblock Remote Allow is not enabled or no MAC addresses configured
" exit 0 @@ -185,7 +185,7 @@ fi if [ -z "${query_mac}" ]; then printf '%s\n' "
- Could not determine MAC address + MAC address could not be determined
" exit 0 diff --git a/net/adblock/files/adblock.sh b/net/adblock/files/adblock.sh index c69de20a4c..21248ff367 100755 --- a/net/adblock/files/adblock.sh +++ b/net/adblock/files/adblock.sh @@ -1421,6 +1421,9 @@ f_search() { : >"${tmp_result}" read -r search_start _ < "/proc/uptime" search_start="${search_start%.*}" + + # search recursively for domain and its parent domains until tld is reached + # while :; do search="${domain//./\\.}" res="$("${adb_awkcmd}" -F '/|\"|\t| ' "/^(${prefix}${search}${suffix})$/{i++;if(i<=9){printf \" + %s\n\",\$${field}}else if(i==10){printf \" + %s\n\",\"[...]\";exit}}" "${adb_finaldir}/${adb_dnsfile}")" @@ -1430,6 +1433,9 @@ f_search() { domain="${tld}" tld="${domain#*.}" done + + # search exactly for domain in backup files and local block-/allowlist + # if [ -d "${adb_backupdir}" ]; then search="${1//./\\.}" printf '%s\n%s\n%s\n' ":::" "::: domain '${1}' in backups and in local block-/allowlist" ":::" >>"${tmp_result}" @@ -1857,7 +1863,7 @@ f_report() { # ignore Reverse DNS /\.in-addr\.arpa/ || /\.ip6\.arpa/ { next } # domain request parser (with optional EDNS marker support) - /\+[[:space:]]+(\[.*\][[:space:]]+)?(A\?|AAAA\?)/ { + /\+[[:space:]]+(\[[0-9a-z]*\][[:space:]]+)?(A\?|AAAA\?)/ { # drop unresolved previous query if (pending) pending = 0 @@ -1875,6 +1881,7 @@ f_report() { sub(/[,\.]+$/, "", domain) if (domain ~ /\.lan$/) next if (domain !~ /\./) next + if (domain ~ /[\/:]/) next qtype = $(NF-2) sub(/\?$/, "", qtype) last_date = date