From b8d9f9f97b63565bfe56c248428a49bc3f6a1e47 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 19 Nov 2018 00:03:27 +0100 Subject: [PATCH] Try all CanonicalAddress and Address statements. --- src/net_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.5