6 ms·
You can scope it further: deno --allow-net=0.0.0.0:8000 https://deno.land/std/examples/echo_server.ts Or even provide a list of addresses: deno --allow-n
by bartlomieju 7y ago
You can scope it further:
deno --allow-net=0.0.0.0:8000 https://deno.land/std/examples/echo_server.ts
Or even provide a list of addresses:
deno --allow-net=0.0.0.0:8000,localhost https://deno.land/std/examples/echo_server.ts
- z3t4 7y agoOn Linux you can use namespaces ip netns exec networkname node script.js Still only on the entire app though, the idea was how to restrict single modules and their dependencies, not your whole app! Something like: const foo = requires("bar", {fs: true, net: "0.0.0.0:8000", os: true});