From d8c4f59c17daf8d2728ad2ecb4583822376d44ec Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 3 Mar 2020 20:32:35 +0100 Subject: [PATCH] Use the first working outgoing socket during meshlink_join(). --- src/meshlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meshlink.c b/src/meshlink.c index c6b14b8f..def3e6ef 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -2769,6 +2769,8 @@ bool meshlink_join(meshlink_handle_t *mesh, const char *invitation) { state.sock = -1; continue; } + + break; } freeaddrinfo(ai); -- 2.39.5