فهرست منبع

unetmsg: list remotely published ids via ubus call

Before this change, only locally published ids were listed

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 7 ماه پیش
والد
کامیت
f60bbfa23f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      package/network/services/unetmsg/files/usr/sbin/unetmsgd

+ 1 - 1
package/network/services/unetmsg/files/usr/sbin/unetmsgd

@@ -38,7 +38,7 @@ let obj = ubus.publish("unetmsg", {
 		},
 		},
 		call: function(req) {
 		call: function(req) {
 			let ret = [];
 			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))
 				if (req.args.name == null || wildcard(name, req.args.name))
 					push(ret, name);
 					push(ret, name);