From 9a550ff4e31e2df398fd63a34422f79be4cdf519 Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 30 May 2016 23:11:50 +0200 Subject: [PATCH] Remove code commited by mistake --- src/net_packet.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/net_packet.c b/src/net_packet.c index a29399a8..e46709a0 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -605,21 +605,17 @@ static void choose_local_address(const node_t *n, const sockaddr_t **sa, int *so edge_t *candidate = NULL; - if (!n->slpd_address) { - for splay_each(edge_t, e, n->edge_tree) { - if(i++ == j) { - candidate = e; - break; - } + for splay_each(edge_t, e, n->edge_tree) { + if(i++ == j) { + candidate = e; + break; } - - if (candidate && candidate->local_address.sa.sa_family) { - *sa = &candidate->local_address; - *sock = rand() % listen_sockets; - adapt_socket(*sa, sock); } - } else { - //*sa = str2sockaddr + + if (candidate && candidate->local_address.sa.sa_family) { + *sa = &candidate->local_address; + *sock = rand() % listen_sockets; + adapt_socket(*sa, sock); } }