banIP: update 1.0.1-2
authorDirk Brenken <dev@brenken.org>
Tue, 26 Nov 2024 06:05:24 +0000 (07:05 +0100)
committerDirk Brenken <dev@brenken.org>
Tue, 26 Nov 2024 06:05:24 +0000 (07:05 +0100)
* correctly parse json objects with hyphens in the autodetection function

Signed-off-by: Dirk Brenken <dev@brenken.org>
net/banip/Makefile
net/banip/files/banip-functions.sh

index 8849cc94430838908e4ca40f6fae02d720c8f0cf..62107c58c50b34dac8315b5388ff8d57df75ae86 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=banip
 PKG_VERSION:=1.0.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index cc722118f57da54581d6d43f46e14f57d5422e15..71f9e5723792283f1587da6fb91501a14bedb623 100644 (file)
@@ -362,7 +362,7 @@ f_getfetch() {
        if { [ "${ban_autodetect}" = "1" ] && [ -z "${ban_fetchcmd}" ]; } || [ ! -x "${ban_fetchcmd}" ]; then
                utils="aria2 curl wget-ssl libustream-openssl libustream-wolfssl libustream-mbedtls"
                for util in ${utils}; do
-                       if printf "%s" "${ban_packages}" | "${ban_jsoncmd}" -ql1 -e "@.packages.${util}" >/dev/null 2>&1; then
+                       if printf "%s" "${ban_packages}" | "${ban_jsoncmd}" -ql1 -e "@.packages[\"${util}\"]" >/dev/null 2>&1; then
                                case "${util}" in
                                        "aria2")
                                                util="aria2c"