From a4f9eca1b05d1b0cdb8854169bf1165ae4b99c0b Mon Sep 17 00:00:00 2001 From: varun-elear Date: Wed, 21 Apr 2021 16:06:42 +0530 Subject: [PATCH] Increase DNS resolution timeout during join to 30 seconds --- src/meshlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink.c b/src/meshlink.c index f6b12bd8..63feee2c 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -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) { -- 2.39.5