FreeBSD Port: haproxy-devel-1.6.d4

Dmitry Sivachenko demon at FreeBSD.org
Mon Sep 14 12:45:51 UTC 2015


> On 14 сент. 2015 г., at 15:38, P.Baauw <pbaauw at gmail.com> wrote:
> 
> Hi Demon,
> 
> Haproxy-1.6-dev5 became available today upstream, but a patch for FreeBSD is 'missing' from that release.
> 
> When you make it available for FreeBSD, could you please include the patch from the mail referenced below [1] ?
> 
> [1] http://marc.info/?l=haproxy&m=144162204927452&w=2


Done.



> 
> Thanks,
> PiBa-NL
> 
> diff --git a/src/dns.c b/src/dns.c
> index 4bc5448..f725ff4 100644
> --- a/src/dns.c
> +++ b/src/dns.c
> @@ -819,7 +819,7 @@ int dns_init_resolvers(void)
>                        }
> 
>                        /* "connect" the UDP socket to the name server IP */
> -                       if (connect(fd, (struct
> sockaddr*)&curnameserver->addr, sizeof(curnameserver->addr)) == -1) {
> +                       if (connect(fd, (struct
> sockaddr*)&curnameserver->addr, get_addr_len(&curnameserver->addr)) == -1) {
>                                Alert("Starting [%s/%s] nameserver:
> can't connect socket.\n", curr_resolvers->id,
>                                                curnameserver->id);
>                                close(fd);
> 
> 



More information about the freebsd-ports mailing list