]> git.meshlink.io Git - meshlink/commitdiff
Use the first working outgoing socket during meshlink_join().
authorGuus Sliepen <guus@meshlink.io>
Tue, 3 Mar 2020 19:32:35 +0000 (20:32 +0100)
committerGuus Sliepen <guus@meshlink.io>
Tue, 3 Mar 2020 19:35:03 +0000 (20:35 +0100)
src/meshlink.c

index c6b14b8f043c1b0bdb4c38b6db8aa687651659b7..def3e6efc9557a7d83d7b4d587b223eb1e256ba1 100644 (file)
@@ -2769,6 +2769,8 @@ bool meshlink_join(meshlink_handle_t *mesh, const char *invitation) {
                                        state.sock = -1;
                                        continue;
                                }
+
+                               break;
                        }
 
                        freeaddrinfo(ai);