Correctly handle IPv4 resolution in cases where the first address resolved is IPv6.