]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_edge.c
Add a function to set the default white/blacklisting behaviour.
[meshlink] / src / protocol_edge.c
index 89ed901d1979b0e04e5a865dc18deb78a2e2700f..783da775bdec0c40d2b27d198ed841c14dfe3d60 100644 (file)
@@ -102,6 +102,7 @@ bool add_edge_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
 
        if(!from) {
                from = new_node();
+               from->status.blacklisted = mesh->default_blacklist;
                from->name = xstrdup(from_name);
                node_add(mesh, from);
        }
@@ -111,6 +112,7 @@ bool add_edge_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
 
        if(!to) {
                to = new_node();
+               to->status.blacklisted = mesh->default_blacklist;
                to->name = xstrdup(to_name);
                node_add(mesh, to);
        }