unetmsg: allow communication between hosts if no service is defined
Simplifies unet setup Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
f212e8b39f
commit
f8ed36f0d7
@ -99,7 +99,7 @@ function network_socket_handle_request(sock_data, req)
|
|||||||
if (list[name])
|
if (list[name])
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
let allowed;
|
let allowed = net.peers[host].allowed == null;
|
||||||
for (let cur in net.peers[host].allowed) {
|
for (let cur in net.peers[host].allowed) {
|
||||||
if (!wildcard(name, cur))
|
if (!wildcard(name, cur))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user