]> git.meshlink.io Git - meshlink/blobdiff - src/net_setup.c
Assert that nodes black/whitelisted by name persist after closing the mesh.
[meshlink] / src / net_setup.c
index e1db743a3c3f3acc484b5c975c0f00599c4dd806..559f0496579ba38540c01635416160ca60c2d2a8 100644 (file)
@@ -116,7 +116,6 @@ bool node_read_public_key(meshlink_handle_t *mesh, node_t *n) {
                n->recent[i + known_count] = packmsg_get_sockaddr(&in);
        }
 
-
        config_free(&config);
        return true;
 }
@@ -233,6 +232,7 @@ bool node_write_config(meshlink_handle_t *mesh, node_t *n) {
        }
 
        if(!packmsg_output_ok(&out)) {
+               meshlink_errno = MESHLINK_EINTERNAL;
                return false;
        }
 
@@ -403,8 +403,7 @@ bool setup_myself(meshlink_handle_t *mesh) {
        graph(mesh);
 
        if(!config_scan_all(mesh, "current", "hosts", load_node, NULL)) {
-               meshlink_errno = MESHLINK_ESTORAGE;
-               return false;
+               logger(mesh, MESHLINK_WARNING, "Could not scan all host config files");
        }
 
        /* Open sockets */