diff options
Diffstat (limited to 'tools/deno_http_proxy.ts')
| -rw-r--r-- | tools/deno_http_proxy.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/deno_http_proxy.ts b/tools/deno_http_proxy.ts index 75ea4b241..589a14338 100644 --- a/tools/deno_http_proxy.ts +++ b/tools/deno_http_proxy.ts @@ -1,8 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { serve, ServerRequest } from "../std/http/server.ts"; -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 server = serve(addr); async function proxyRequest(req: ServerRequest): Promise<void> { |
