In bind_port(), stop hinting AI_ADDRCONFIG to getaddrinfo()
authorFabian Keil <fk@fabiankeil.de>
Mon, 4 Jul 2011 17:47:29 +0000 (17:47 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 4 Jul 2011 17:47:29 +0000 (17:47 +0000)
commit23b7a6fd0765b1e43fa6a2cefed3d0ea4856bf83
treea69d1226b23d324f7267074de5f1c8d02d57ce80
parente866a10d8d231d1ad35362b0d3a95b0aced40c19
In bind_port(), stop hinting AI_ADDRCONFIG to getaddrinfo()

It's not strictly needed there and causes GNU libc to fail to
return loopback addresses if no non-loopback IP address is
configured on the system. Apparently this is the result of a
somewhat strict but valid interpretation of RFC 3493 and
considered a feature. Sad but true.

This is mainly an issue if the system is using DHCP and Privoxy
is started before the network is completely configured.

Reported by Raphael Marichez in #3349356.
Additional insight from Petr Pisar.
jbsockets.c