Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node/dns.ts crashes with UNKNOWN error if --allow-net permission is missing #1396

Closed
talentlessguy opened this issue Oct 13, 2021 · 0 comments · Fixed by #3133
Closed

node/dns.ts crashes with UNKNOWN error if --allow-net permission is missing #1396

talentlessguy opened this issue Oct 13, 2021 · 0 comments · Fixed by #3133
Labels
bug Something isn't working needs triage

Comments

@talentlessguy
Copy link
Contributor

talentlessguy commented Oct 13, 2021

Describe the bug

node/dns.ts Server crashes with UNKNOWN error if --allow-net is not provided. This case should be handled like in a regular http server.

image

Steps to Reproduce

import { Server } from 'https://deno.land/std/node/net.ts'

const s = new Server()

s.listen(3000)
$ deno run example.js

Expected behavior

Throw permission error

Environment

  • OS: Linux
  • deno version: 1.15.1
  • std version: 0.111.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants