You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikioh
changed the title
net.Listen("tcp", ":port") fails in an AF_INET6-only environment
net: Listen("tcp", ":port") fails in an AF_INET6-only environment
Sep 26, 2015
Given a hacked-up IPv6-only Linux kernel:
The following program:
Does not work:
The problem is,
favoriteAddrFamily
sees that it can't use dual-stack sockets, and falls back to AF_INET without first checkingsupportsIPv4
.You can use
"[::]:port"
as a workaround, but":port"
ought to work. I'm preparing a patch for this.The text was updated successfully, but these errors were encountered: