WICG / direct-sockets

Direct Sockets API for the web platform
Other
362 stars 14 forks source link

no way to control IPv4 or IPv6 hostname resolution #51

Closed vapier closed 1 year ago

vapier commented 2 years ago

sadly, IPv6 / IPv4 dual stack reliability is still not a thing everywhere. as such, it can be helpful for applications to expose forcing of a particular IP version when connecting via a hostname. the currently proposed API lacks such a knob. and since there's no DNS type of API available currently either, it's (practically speaking) impossible to workaround.

can we add another property TCPSocketOptions & UDPSocketOptions to control this ? would want to support at least 3 values -- any (the default), ipv4, and ipv6. i have no opinions as how best to encode that in the standard.

GrapeGreen commented 1 year ago

66

vapier commented 1 year ago

thanks you mr grape