default to 0.0.0.0 for Deno.listen (#5203)

This commit is contained in:
Pavan Kumar 2020-05-13 18:48:41 +05:30 committed by GitHub
parent 3d7552af2e
commit 9c01403865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ export function listen(
export function listen(options: ListenOptions): Listener {
const res = netOps.listen({
transport: "tcp",
hostname: "127.0.0.1",
hostname: "0.0.0.0",
...(options as ListenOptions),
});