unetmsg: allow communication between hosts if no service is defined
authorFelix Fietkau <nbd@nbd.name>
Fri, 11 Apr 2025 11:02:19 +0000 (13:02 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 11 Apr 2025 11:02:31 +0000 (13:02 +0200)
Simplifies unet setup

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

index c12f4abce80fe29f7ba980250165f53838a38320..edc034343b0458d3f0bfb0cc9d9c09ca6f017e86 100644 (file)
@@ -99,7 +99,7 @@ function network_socket_handle_request(sock_data, req)
                        if (list[name])
                                return 0;
 
-                       let allowed;
+                       let allowed = net.peers[host].allowed == null;
                        for (let cur in net.peers[host].allowed) {
                                if (!wildcard(name, cur))
                                        continue;