]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_misc.c
Add support for encrypted storage.
[meshlink] / src / protocol_misc.c
index 8855d20e22a6ada4967c6bd8df759103173ccf2e..dde4bbb4db377445cda34c3b6e028ebb8268237f 100644 (file)
@@ -91,9 +91,10 @@ bool pong_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
 
        /* Successful connection, reset timeout if this is an outgoing connection. */
 
+       // TODO: completely remove this outgoing, let the autoconnect algorithm handle it
        if(c->outgoing) {
                c->outgoing->timeout = 0;
-               c->outgoing->cfg = NULL;
+               c->outgoing->state = OUTGOING_START;
 
                if(c->outgoing->ai) {
                        freeaddrinfo(c->outgoing->ai);