X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=d26b0f651f3dde6c374a7dcd49784d998bb6efde;hb=refs%2Fheads%2Ffeature%2Fencrypted-storage;hp=9fec1ffad737451a94d17f7b5d5132196a0ff7bc;hpb=6bad600979ebea04def1ad53d3de0b06aac60b1e;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 9fec1ffa..d26b0f65 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -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);