diff options
Diffstat (limited to 'docs/examples/tcp_echo.md')
-rw-r--r-- | docs/examples/tcp_echo.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/tcp_echo.md b/docs/examples/tcp_echo.md index 5dfc71b83..99e8cbd04 100644 --- a/docs/examples/tcp_echo.md +++ b/docs/examples/tcp_echo.md @@ -14,7 +14,7 @@ for await (const conn of listener) { When this program is started, it throws PermissionDenied error. ```shell -$ deno run https://deno.land/std/examples/echo_server.ts +$ deno run https://deno.land/std@$STD_VERSION/examples/echo_server.ts error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) @@ -25,7 +25,7 @@ For security reasons, Deno does not allow programs to access the network without explicit permission. To allow accessing the network, use a command-line flag: ```shell -deno run --allow-net https://deno.land/std/examples/echo_server.ts +deno run --allow-net https://deno.land/std@$STD_VERSION/examples/echo_server.ts ``` To test it, try sending data to it with netcat: |