prefer IPv6 in resolve_addr()