X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=487f34c96ebef3f640ea2339540dc7607100fe62;hp=e56aa88132d3977031fc08e4a4bf57de1add1aa8;hb=ae73e19ce57b80c561b81170ab48f3cf6f1a41eb;hpb=239fc1ea5c7a83829aa608568911391777817b74 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); }