summaryrefslogtreecommitdiff
path: root/tools/deno_tcp_proxy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/deno_tcp_proxy.ts')
-rw-r--r--tools/deno_tcp_proxy.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/deno_tcp_proxy.ts b/tools/deno_tcp_proxy.ts
index 487825648..bf54ad1c0 100644
--- a/tools/deno_tcp_proxy.ts
+++ b/tools/deno_tcp_proxy.ts
@@ -1,6 +1,6 @@
// Used for benchmarking Deno's tcp proxy perfromance. See tools/http_benchmark.py
-const addr = Deno.args[1] || "127.0.0.1:4500";
-const originAddr = Deno.args[2] || "127.0.0.1:4501";
+const addr = Deno.args[0] || "127.0.0.1:4500";
+const originAddr = Deno.args[1] || "127.0.0.1:4501";
const [hostname, port] = addr.split(":");
const [originHostname, originPort] = originAddr.split(":");