+26
−1
+26
−1
Loading
getaddrinfo(NULL, AI_PASSIVE) lists 0.0.0.0 first (glibc and systempp),
so a server with no bind address was IPv4-only. Prefer the IPv6 wildcard,
which IPV6_V6ONLY=0 already makes dual-stack; fall back to the plain lookup
when the host has no IPv6. OpenBSD keeps the old behaviour (no IPv4-mapped
sockets there).
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>