summaryrefslogtreecommitdiff
path: root/tools/deno_tcp.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/deno_tcp.ts')
-rw-r--r--tools/deno_tcp.ts2
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(