]> git.ipfire.org Git - thirdparty/openwrt.git/commit
unetmsg: only send publish notifications for remote publisher changes
authorFelix Fietkau <nbd@nbd.name>
Sat, 7 Feb 2026 08:02:24 +0000 (08:02 +0000)
committerFelix Fietkau <nbd@nbd.name>
Sat, 7 Feb 2026 09:04:18 +0000 (10:04 +0100)
commite0722d0ac41b931e8a3b79c439a029844e89cbad
tree471d05c622730853bd70a38723bbbb719251bc3f
parent212040b5cac619ec8009b0b4262d11b4e3abfdc4
unetmsg: only send publish notifications for remote publisher changes

handle_publish() notifies local subscribers about publisher state
changes. The publish/subscribe handler in network_socket_handle_request()
was calling it for both remote publish and subscribe changes, but
subscriber changes are not relevant to local subscribers.

Guard the handle_publish() calls with a msgtype == "publish" check,
matching the local client paths in unetmsgd-client.uc which already
have this guard.

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