We must allow the autoconnect algorithm to try connections to nodes that
are online but for which we don't have a public key, otherwise we risk
that no connections are formed at all, except to the inviting node.
}
}
- if(!node_read_public_key(mesh, connect_to)) {
+ if(!connect_to->status.reachable && !node_read_public_key(mesh, connect_to)) {
logger(mesh, MESHLINK_DEBUG, "* skip autoconnect since we don't know this node's public key");
skip = true;
}