deno icon indicating copy to clipboard operation
deno copied to clipboard

Resolve `localhost` to IP

Open notroid5 opened this issue 7 months ago • 1 comments

Currently, Deno does not resolve localhost and asks for net access to 127.0.0.1 (IPv4) or ::1 (IPv6). Even though this address will probably never change, I prefer using hostnames for consistency.

This could be solved by:

  • reading and parsing the hosts file (plus more permission requests)
  • hardcoding

Hardcoding would be fine for me unless someone knows a reason to read the hosts file.

notroid5 avatar May 28 '25 02:05 notroid5

+1

edilson258 avatar May 28 '25 04:05 edilson258