deno
deno copied to clipboard
Resolve `localhost` to IP
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.
+1