X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgraph.c;h=60ac3adfc362a50806ac93b3b5e44850813f2ef7;hb=a5a8005b2d89712e124ab7295165a3e229abdad5;hp=1a1e237595076fd9bad0fe55e0ab3c6c60ffe699;hpb=282b99f3c71705bd6e34d4e4f9e8369ea63c87ed;p=meshlink diff --git a/src/graph.c b/src/graph.c index 1a1e2375..60ac3adf 100644 --- a/src/graph.c +++ b/src/graph.c @@ -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); } }