luci-app-banip: release 1.8.9-1
authorDirk Brenken <redacted>
Fri, 12 Jun 2026 20:32:47 +0000 (22:32 +0200)
committerDirk Brenken <redacted>
Fri, 12 Jun 2026 20:32:47 +0000 (22:32 +0200)
* fix minor code issues

Signed-off-by: Dirk Brenken <redacted>
applications/luci-app-banip/Makefile
applications/luci-app-banip/htdocs/luci-static/resources/view/banip/feeds.js
applications/luci-app-banip/root/usr/share/rpcd/acl.d/luci-app-banip.json

index 74d83aa2dd1f725ba7f17a858e7a343c2706297a..b6eefd9c18917633cc71691955920f2cad52eb26 100644 (file)
@@ -6,8 +6,8 @@ include $(TOPDIR)/rules.mk
 LUCI_TITLE:=LuCI support for banIP
 LUCI_DEPENDS:=+luci-base +banip
 
-PKG_VERSION:=1.8.8
-PKG_RELEASE:=5
+PKG_VERSION:=1.8.9
+PKG_RELEASE:=1
 PKG_LICENSE:=Apache-2.0
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
index e49cafd3e37b9e0db4546f431b018c3d146bf616..412c31021aefeddca0d7e6659f461bafbf9afe68 100644 (file)
@@ -73,11 +73,11 @@ observer.observe(targetNode, observerConfig);
 function handleEdit(ev) {
        if (ev === 'upload') {
                return ui.uploadFile('/etc/banip/banip.custom.feeds').then(function () {
-                       L.resolveDefault(fs.read_direct('/etc/banip/banip.custom.feeds', 'json'), "").then(function (data) {
+                       return L.resolveDefault(fs.read_direct('/etc/banip/banip.custom.feeds', 'json'), "").then(function (data) {
                                if (data && Object.keys(data).length > 0) {
                                        for (let i = 0; i < Object.keys(data).length; i++) {
                                                let feed = Object.keys(data)[i];
-                                               let descr = data[feed].descr;
+                                               let descr = data[feed]?.descr;
                                                if (feed && descr) {
                                                        continue;
                                                }
index c25476a2d4b1796d01590d4b071d3441ec10540f..6ab134fd3867ccad18169c45c0d8899646e470eb 100644 (file)
@@ -65,9 +65,6 @@
                                ],
                                "/etc/init.d/banip content *": [
                                        "exec"
-                               ],
-                               "/etc/init.d/banip status": [
-                                       "exec"
                                ]
                        },
                        "uci": [
git clone https://git.99rst.org/PROJECT