X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=404a81c88de8ec09fddc65f58d926a09f4935eda;hb=546eb066092803d218c5b31d32af724c42bee2a1;hp=9cb96b6590aecd6dd47f1af1fb23fc2ca694178c;hpb=e4e5a81447142da0fb1291b2d2119ed6981b89e5;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)) {