]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Various fixes for the encrypted storage support.
[meshlink] / src / protocol_auth.c
index 9fec1ffad737451a94d17f7b5d5132196a0ff7bc..d26b0f651f3dde6c374a7dcd49784d998bb6efde 100644 (file)
@@ -164,9 +164,8 @@ static bool finalize_invitation(meshlink_handle_t *mesh, connection_t *c, const
        n->devclass = DEV_CLASS_UNKNOWN;
        n->ecdsa = ecdsa_set_public_key(data);
        n->submesh = c->submesh;
-       n->status.dirty = true;
        node_add(mesh, n);
-       // TODO: immediately write the config file?
+       node_write_config(mesh, n);
 
        logger(mesh, MESHLINK_INFO, "Key successfully received from %s", c->name);