From: Guus Sliepen Date: Sun, 18 Nov 2018 23:03:27 +0000 (+0100) Subject: Try all CanonicalAddress and Address statements. X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=b8d9f9f97b63565bfe56c248428a49bc3f6a1e47 Try all CanonicalAddress and Address statements. --- diff --git a/src/net_socket.c b/src/net_socket.c index ea5fdaa0..f98023bd 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -453,7 +453,7 @@ static bool get_next_outgoing_address(meshlink_handle_t *mesh, outgoing_t *outgo } if(outgoing->state == OUTGOING_CANONICAL) { - if(outgoing->aip || get_next_cfg(mesh, outgoing, "CanonicalAddress")) { + while(outgoing->aip || get_next_cfg(mesh, outgoing, "CanonicalAddress")) { if(get_next_ai(mesh, outgoing)) { return true; } else { @@ -467,7 +467,7 @@ static bool get_next_outgoing_address(meshlink_handle_t *mesh, outgoing_t *outgo } if(outgoing->state == OUTGOING_RECENT) { - if(outgoing->aip || get_next_cfg(mesh, outgoing, "Address")) { + while(outgoing->aip || get_next_cfg(mesh, outgoing, "Address")) { if(get_next_ai(mesh, outgoing)) { return true; } else {