]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_misc.c
Add support for encrypted storage.
[meshlink] / src / protocol_misc.c
index 727881bd1080476d2c5d9303b76d315f702cc2a0..c6a6b024319385db4beb92019097abb6a535ff06 100644 (file)
@@ -91,9 +91,10 @@ bool pong_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
 
        /* Succesful 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);