]> git.meshlink.io Git - meshlink/blobdiff - src/graph.c
Send REQ_KEY after a successful meta-connection only from the initiator.
[meshlink] / src / graph.c
index 1a1e237595076fd9bad0fe55e0ab3c6c60ffe699..60ac3adfc362a50806ac93b3b5e44850813f2ef7 100644 (file)
@@ -228,7 +228,7 @@ static void check_reachability(meshlink_handle_t *mesh) {
                                update_node_udp(mesh, n, NULL);
                                n->status.broadcast = false;
                        } else if(n->connection) {
-                               if(n->connection->outgoing) {
+                               if(n->connection->status.initiator) {
                                        send_req_key(mesh, n);
                                }
                        }