commit | d5f4328efd5f4eaa7c89cad9773124959195430a | [log] [tgz] |
---|---|---|
author | David du Colombier <dducolombier@exceliance.fr> | Thu Mar 17 10:40:16 2011 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Mar 23 22:49:55 2011 +0100 |
tree | 0add1a079e05f5ce493d700ebca5b7924547ac56 | |
parent | 2dff0c28e85207df94185d43b80722ac138c4436 [diff] |
[MEDIUM] use getaddrinfo to resolve names if gethostbyname fail Function gethostbyname is deprecated since IEEE Std 1003.1-2008 and was replaced by getaddrinfo (available since IEEE Std 1003.1-2004). Contrary to gethostbyname, getaddrinfo is specified to support both IPv4 and IPv4 addresses. Since some libc doesn't handle getaddrinfo properly, constant USE_GETADDRINFO must be defined at compile time to enable use of getaddrinfo.