Deno: Deno ListenOptions hostname does not bind to ipv6 by default

Created on 13 May 2020  路  3Comments  路  Source: denoland/deno

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.

Most helpful comment

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.

All 3 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kitsonk picture kitsonk  路  3Comments

benjamingr picture benjamingr  路  3Comments

doutchnugget picture doutchnugget  路  3Comments

ry picture ry  路  3Comments

sh7dm picture sh7dm  路  3Comments