diff options
Diffstat (limited to 'std/examples/echo_server.ts')
-rw-r--r-- | std/examples/echo_server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/echo_server.ts b/std/examples/echo_server.ts index cdd98fea7..dbcc9b5ae 100644 --- a/std/examples/echo_server.ts +++ b/std/examples/echo_server.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. const hostname = "0.0.0.0"; -const port = +(Deno.args[0] ?? "8080"); +const port = 8080; const listener = Deno.listen({ hostname, port }); console.log(`Listening on ${hostname}:${port}`); for await (const conn of listener) { |