]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Increase DNS resolution timeout during join to 30 seconds
[meshlink] / src / meshlink.c
index f6b12bd89d0e26e87e796290b3e9305263db573c..63feee2c88420b6670251eb697e3fe0aac1f6ce5 100644 (file)
@@ -3154,7 +3154,7 @@ bool meshlink_join(meshlink_handle_t *mesh, const char *invitation) {
                }
 
                // Connect to the meshlink daemon mentioned in the URL.
-               struct addrinfo *ai = adns_blocking_request(mesh, xstrdup(address), xstrdup(port), SOCK_STREAM, 5);
+               struct addrinfo *ai = adns_blocking_request(mesh, xstrdup(address), xstrdup(port), SOCK_STREAM, 30);
 
                if(ai) {
                        for(struct addrinfo *aip = ai; aip; aip = aip->ai_next) {