1b2ddc2e81
OS X advertises IPv6 link-local addresses for .local hostnames. getaddrinfo() correctly reports interface identifiers for these, but we were discarding them by using the socket peer host address instead.