]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Improve the autoconnect algorithm.
[meshlink] / src / protocol_auth.c
index 1193b43ce6c3b09df65a995db5a783f55f752f31..9fda90650d1f2e5e541dde36932510e5a604eafd 100644 (file)
@@ -432,7 +432,7 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
        n->devclass = devclass;
        n->status.dirty = true;
 
-       n->last_successfull_connection = mesh->loop.now.tv_sec;
+       n->last_successful_connection = mesh->loop.now.tv_sec;
 
        n->connection = c;
        c->node = n;