]> git.meshlink.io Git - meshlink/blobdiff - src/net_socket.c
Send REQ_KEY after a successful meta-connection only from the initiator.
[meshlink] / src / net_socket.c
index 374ba205b68ec6ebb42acc80151a2df1a35951fb..29f14c0eaa244e5122ef2679f4079486f3b89d16 100644 (file)
@@ -577,6 +577,7 @@ begin:
        /* Now that there is a working socket, fill in the rest and register this connection. */
 
        c->status.connecting = true;
+       c->status.initiator = true;
        c->name = xstrdup(outgoing->node->name);
        c->last_ping_time = mesh->loop.now.tv_sec;