X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=487f34c96ebef3f640ea2339540dc7607100fe62;hb=dd2cf09a9ac438b65a1f4c9dcff8d87a2b504538;hp=e56aa88132d3977031fc08e4a4bf57de1add1aa8;hpb=f712fdc0b3de22566cdf06954256c62f46f25542;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index e56aa881..487f34c9 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -402,7 +402,7 @@ bool id_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { node_t *n = lookup_node(mesh, c->name); - if(n && !n->status.waitingforkey) { + if(n && n->status.reachable && !n->status.waitingforkey) { logger(mesh, MESHLINK_INFO, "Requesting key from peer %s", c->name); send_req_key(mesh, n); }