diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-09 11:37:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 11:37:01 -0700 |
commit | d492c5abe3c7c0716b9695c8a40d0256569d2338 (patch) | |
tree | 15d5d901d3dac3bedefd7258d29a177a2f6ae9a0 /tools/deno_tcp.ts | |
parent | c50cab90a05d271013f741768d70c1eda6ef9a10 (diff) |
feat: Deno.args now does not include script (#3628)
Previously Deno.args was ["script.js", "arg1", "arg2"]
Now it is just ["arg1", "arg2"]
BREAKING CHANGE
Diffstat (limited to 'tools/deno_tcp.ts')
-rw-r--r-- | tools/deno_tcp.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/deno_tcp.ts b/tools/deno_tcp.ts index 13ebe76af..9a884cb70 100644 --- a/tools/deno_tcp.ts +++ b/tools/deno_tcp.ts @@ -2,7 +2,7 @@ // TODO Replace this with a real HTTP server once // https://github.com/denoland/deno/issues/726 is completed. // Note: this is a keep-alive server. -const addr = Deno.args[1] || "127.0.0.1:4500"; +const addr = Deno.args[0] || "127.0.0.1:4500"; const [hostname, port] = addr.split(":"); const listener = Deno.listen({ hostname, port: Number(port) }); const response = new TextEncoder().encode( |