Quantcast
Channel: Serverphorums.com - HAProxy
Viewing all articles
Browse latest Browse all 5112

Haproxy 1.7 and Ipv6-only hosts (4 replies)

$
0
0
Hi!

Since I've installed 1.7.1 version of haproxy over 1.6.10 – it stopped
working with ipv6-only backends (no A-record in DNS at all, only AAAA),
even with USE_GETADDRINFO=1 set. Haproxy says, that it 'could not resolve
address' and exits on a parsing phase.

The problem is in fuction str2sa_range, and a quick and ugly hack, which
made me happy (all my backends are dual-stack, or ipv6-only):
--- haproxy-1.7.1.orig/src/standard.c
+++ haproxy-1.7.1/src/standard.c
@@ -963,7 +963,7 @@ struct sockaddr_storage *str2sa_range(co
* force it to IPv4 for now.
*/
memset(&ss, 0, sizeof(ss));
- ss.ss_family = AF_INET;
+ ss.ss_family = AF_INET6;
}
else if ((!resolve && !fqdn) ||
(resolve && str2ip2(str2, &ss, 1) == NULL)) {

Please, fix it.

--
Best regards,
Maksim Kupriianov

Viewing all articles
Browse latest Browse all 5112

Trending Articles