When a hostname is not provided to a method the ListenOptions defaults it to 0.0.0.0, the process binds to only ipv4 address and for binding an ipv6 address it requires explicit mentioning via the hostname, for example, the hostname should be set to [::1] to bind it to an ipv6 address and so on. Need to check whether to bind the ipv6 address by default, or keep the same functionality as of now.
Related discussion in #5144
Honestly, I think it would be better to bind both 0.0.0.0 and [::] by default if IPv6 is available on the operating system. IPv6 will become mainstream in the future, and Deno should face the future.
update on if this needs to change or not?
Most helpful comment
Honestly, I think it would be better to bind both
0.0.0.0and[::]by default if IPv6 is available on the operating system. IPv6 will become mainstream in the future, and Deno should face the future.