Re: [PATCH] httpd: fix address family for reverse proxy client socket

2017-01-08 Thread Denys Vlasenko
Applied, thanks! On Fri, Jan 6, 2017 at 10:03 PM, Laurent Bercot wrote: > When httpd proxies a request to another server, it first creates > an AF_INET socket, then resolves the server name to a sockaddr, > then connects to it. This fails if the server name resolves to

[PATCH] httpd: fix address family for reverse proxy client socket

2017-01-06 Thread Laurent Bercot
When httpd proxies a request to another server, it first creates an AF_INET socket, then resolves the server name to a sockaddr, then connects to it. This fails if the server name resolves to an IPv6 address. This patch ensures that the socket is created with the correct address family (AF_INET6