From 690df24583e0da336a826b2ad30967cfe9c22277 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 5 Nov 2019 20:57:31 +0100 Subject: [PATCH] Sync the host config directory after accepting an invitee. --- src/protocol_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_auth.c b/src/protocol_auth.c index a33c3397..beeef54e 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -165,7 +165,7 @@ static bool finalize_invitation(meshlink_handle_t *mesh, connection_t *c, const n->ecdsa = ecdsa_set_public_key(data); n->submesh = c->submesh; - if(!node_write_config(mesh, n)) { + if(!node_write_config(mesh, n) || !config_sync(mesh, "current")) { logger(mesh, MESHLINK_ERROR, "Error writing configuration file for invited node %s!\n", c->name); free_node(n); return false; -- 2.39.5