Descriptionnet: name-based destination address selection
getaddrinfo() orders the addresses according to RFC 3484.
This means when IPv6 is working on a host we get results like:
[]string = {"2001:4810::110", "66.117.47.214"}
and when it's not working we get:
[]string = {"66.117.47.214", "2001:4810::110"}
thus can drop firstFavoriteAddr.
This also means /etc/gai.conf works on relevant systems.
Patch Set 1 #Patch Set 2 : diff -r 511984d82ba5 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 511984d82ba5 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 511984d82ba5 https://go.googlecode.com/hg/ #
MessagesTotal messages: 6
|