]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: Fix name lookup ordering when compiled with USE_GETADDRINFO
authorNenad Merdanovic <nimzo@nimzo.info>
Mon, 14 Apr 2014 13:56:58 +0000 (15:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2014 13:56:58 +0000 (15:56 +0200)
commit88afe037788857592a15d18a0030856fe5491624
treee345e8c9dd299ab8ff0643df63da55cb4911cd1b
parent914c0d67b21d338ae332a4e75325513abbaa81fe
BUG/MINOR: Fix name lookup ordering when compiled with USE_GETADDRINFO

When compiled with USE_GETADDRINFO, make sure we use getaddrinfo(3) to
perform name lookups. On default dual-stack setups this will change the
behavior of using IPv6 first. Global configuration option
'nogetaddrinfo' can be used to revert to deprecated gethostbyname(3).
include/types/global.h
src/cfgparse.c
src/haproxy.c
src/standard.c