2 This patch can be applied to version 3.0.1 and fixes a
3 IP address resolution priorities between ipv4 and ipv6.
4 This should fix bug #1029
6 Apply it to version 3.0.1 with:
9 patch -p0 <3.0.1-ipv6-resolution-order.patch
10 ./configure <your-options>
17 ===================================================================
18 --- src/lib/bnet.c (révision 8841)
19 +++ src/lib/bnet.c (copie de travail)
24 - errmsg = resolv_host(AF_INET, host, addr_list);
27 - errmsg = resolv_host(AF_INET6, host, addr_list);
29 + /* We try to resolv host for ipv6 and ipv4, the connection procedure
30 + * will try to reach the host for each protocols. We report only "Host
31 + * not found" ipv4 message (no need to have ipv6 and ipv4 messages).
33 + resolv_host(AF_INET6, host, addr_list);
36 + errmsg = resolv_host(AF_INET, host, addr_list);
38 + if (addr_list->size() == 0) {
40 free_addresses(addr_list);