mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
30bcf6a2ea
Ref #4467
This reverts commit 60cee4f045
.
8 lines
285 B
TypeScript
8 lines
285 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
const hostname = "0.0.0.0";
|
|
const port = 8080;
|
|
const listener = Deno.listen({ hostname, port });
|
|
console.log(`Listening on ${hostname}:${port}`);
|
|
for await (const conn of listener) {
|
|
Deno.copy(conn, conn);
|
|
}
|