From: Guus Sliepen Date: Tue, 3 Mar 2020 19:32:35 +0000 (+0100) Subject: Use the first working outgoing socket during meshlink_join(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=d8c4f59c17daf8d2728ad2ecb4583822376d44ec;p=meshlink Use the first working outgoing socket during meshlink_join(). --- 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);