* git daemon and v6-only
@ 2006-03-22 5:04 Jeff Garzik
0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2006-03-22 5:04 UTC (permalink / raw)
To: Git Mailing List
Regarding the following code in daemon.c socksetup():
> #ifdef IPV6_V6ONLY
> if (ai->ai_family == AF_INET6) {
> int on = 1;
> setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY,
> &on, sizeof(on));
> /* Note: error is not fatal */
> }
> #endif
On Linux this causes you to bind separately to v4 and v6 interfaces,
avoiding the default (desired) behavior of using a single socket for
both v4 and v6.
Jeff
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-22 5:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-22 5:04 git daemon and v6-only Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).