net linux preferIPv4 is not quite right #679
rsc
commented
Mar 19, 2010
gopherbot
commented
Apr 6, 2010
Regarding the question of "is net.ipv6.bindv6only=1 broken?", Java people have a similar issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342561
gopherbot
commented
Apr 8, 2010
Rather than arguing if net.ipv6.bindv6only=1 is broken or not, a better solution may be to use the socket option IPV6_V6ONLY (RFC 3493, section 5.3). This option allows a per-socket tuning of the "V6only binding". Go could set it to 0 systematically or, better, export it for applications to use. Apparently, with today's tip, this option is imported (src/pkg/syscall/zerrors_linux_386.go) but I'm not sure it can be used by applications. (syscall.SetsockoptInt ? Not very clean)
gopherbot
commented
Aug 18, 2010
Comment 6 by joerg.sonnenberger:
Attached is a patch that works on NetBSD.
Attachments:
- v6only.diff (3209 bytes)
This was referenced Dec 8, 2014
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.