]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
unetmsg: list remotely published ids via ubus call
authorFelix Fietkau <nbd@nbd.name>
Fri, 16 May 2025 10:58:19 +0000 (12:58 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 16 May 2025 11:01:41 +0000 (13:01 +0200)
Before this change, only locally published ids were listed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/unetmsg/files/usr/sbin/unetmsgd

index aa21053ca9c9d184818e2cd0371a33ea676ed051..09d9fcdd7db0e0c2c458a761814c56e89277b22e 100755 (executable)
@@ -38,7 +38,7 @@ let obj = ubus.publish("unetmsg", {
                },
                call: function(req) {
                        let ret = [];
-                       for (let name in core.publish)
+                       for (let name in { ...core.publish, ...core.remote_publish })
                                if (req.args.name == null || wildcard(name, req.args.name))
                                        push(ret, name);