X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=404a81c88de8ec09fddc65f58d926a09f4935eda;hb=c6cc7da56d108f05ea6f9a2f765f699e6e2353db;hp=9cb96b6590aecd6dd47f1af1fb23fc2ca694178c;hpb=98b9d73682733072d66d6db3beb15e7309805cf5;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 9cb96b65..404a81c8 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -433,6 +433,8 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { n->devclass = devclass; node_write_devclass(mesh, n); + n->last_successfull_connection = time(NULL); + n->connection = c; c->node = n; if(!(c->options & options & OPTION_PMTU_DISCOVERY)) {