[core] try AF_INET after AF_INET6 if use-ipv6
commita69a803e35500c2ec0ba900420452cd4db750502
authorGlenn Strauss <gstrauss@gluelogic.com>
Wed, 27 Jul 2016 19:37:46 +0000 (27 15:37 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Wed, 27 Jul 2016 19:37:46 +0000 (27 15:37 -0400)
tree54e548832d344a96dd94aac53f50f1355bd322b8
parenta95aaa9de984dc004dd1d4302147e8a0c23efb10
[core] try AF_INET after AF_INET6 if use-ipv6

try AF_INET after AF_INET6 if server.use-ipv6 = "enable" and
getaddrinfo() fails EAI_ADDRFAMILY when hints.ai_family is AF_INET6.
(Prefer IPv6 instead of setting hinst.ai_family to AF_UNSPEC since
lighttpd only uses the first address returned)
src/network.c