Bug#541139: uses gethostbyname() and thus does not work with options inet6 in /etc/resolv.conf

2009-08-12 Thread Stefan Alfredsson
Michael Stapelberg wrote: This is easily fixed by using getaddrinfo() (which is also beneficial for supporting IPv6 and for other reasons, see: http://udrepper.livejournal.com/16116.html ). Patch is attached. Thanks for the patch (which upstream will hopefully apply to their tree :). Please

Bug#541139: uses gethostbyname() and thus does not work with options inet6 in /etc/resolv.conf

2009-08-12 Thread Martin Pala
Thanks :) Added to upstream. There were yet two additional gethostbyname() instances used in ICMP test and Monit's httpd server socket ... i have replaced them too. Martin On Aug 12, 2009, at 7:56 AM, Stefan Alfredsson wrote: Michael Stapelberg wrote: This is easily fixed by using

Bug#541139: uses gethostbyname() and thus does not work with options inet6 in /etc/resolv.conf

2009-08-11 Thread Michael Stapelberg
Package: monit Version: 5.0.3-1 Severity: important Tags: patch Because monit uses gethostbyname() in net.c, it tries to interpret the mapped addresses it gets (:::192.168.1.1) as AF_INET and thus connects to 0.0.0.0, which works by chance for some services, but not for all. This is easily