When connecting to a URL using URLSession, is it possible to somehow control if URLSession should pick an IPv4 or IPv6 address?
I have a URL and I need to make two connections to the URL, one using IPv4 and one using IPv6. The DNS name used in the URL resolves to both IPv4 and IPv6 addresses and I can't change this.
Is there any way to affect which IP version (or IP number in general) that URLSession picks when resolving the name?
I have a URL and I need to make two connections to the URL, one using IPv4 and one using IPv6. The DNS name used in the URL resolves to both IPv4 and IPv6 addresses and I can't change this.
Is there any way to affect which IP version (or IP number in general) that URLSession picks when resolving the name?