]> git.meshlink.io Git - meshlink/commitdiff
Increase DNS resolution timeout during join to 30 seconds
authorvarun-elear <varun.k@healthasyst.com>
Wed, 21 Apr 2021 10:36:42 +0000 (16:06 +0530)
committerGuus Sliepen <guus@meshlink.io>
Thu, 22 Apr 2021 22:41:55 +0000 (00:41 +0200)
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) {