In bind_port(), let getaddrinfo() resolve localhost using whatever address family...
authorFabian Keil <fk@fabiankeil.de>
Tue, 15 Dec 2009 17:41:36 +0000 (17:41 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 15 Dec 2009 17:41:36 +0000 (17:41 +0000)
commitf9b91cba1490b65311cc70d1af027b0b1d4fa58a
treefa4fd81e363628f82c899681144cbc58d6fcb755
parentc909a1b6f5ddbf9184c0bd5a8032c253ae73153c
In bind_port(), let getaddrinfo() resolve localhost using whatever address family it feels like.

As Roland pointed out on privoxy-devel, explicitly asking
for AF_INET doesn't work reliably on GNU/Linux:
Message-ID: <20091213201632.GA3217@dinghy.sail.spinnaker.de>
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534735
https://bugs.launchpad.net/ubuntu/+source/privoxy/+bug/427625
jbsockets.c