* Julien Cristau: > +#if defined(ENABLE_IPV6) && defined(IPV6_V6ONLY) > + if (ai->ai_family == AF_INET6) { > + int zero = 0; > + if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &zero, > sizeof(zero)) < 0) > + g_warning("setsockopt(IPV6_V6ONLY): %s", > g_strerror(errno)); > + } > +#endif > +
Isn't it a bug in getaddrinfo that it doesn't do that on its own? Or does it return multiple sockets in this case? -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1o6f0i-0001gt...@mid.deneb.enyo.de