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

fix(permissions): handle ipv6 addresses correctly #24397

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

lucacasonato
Copy link
Member

Also don't panic on invalid domain names and addresses.

Extracted with cleanups up from #24080

Fixes #23294

Co-authored-by: Yazan AbdAl-Rahman [email protected]

@lucacasonato
Copy link
Member Author

lucacasonato commented Jul 2, 2024

This does now disallow this, which was previously allowed:

--allow-net=1::2:3

The reason for this, is is that this is ambiguous - it's either [1::2]:3 or [1::2:3] - you now have to wrap all IPv6 addresses in square brackets in Deno.permissions.* and --allow-net, and --deny-net APIs.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Also don't panic on invalid domain names and addresses.

Co-authored-by: Yazan AbdAl-Rahman <[email protected]>
@lucacasonato lucacasonato merged commit 74ac29b into denoland:main Jul 5, 2024
17 checks passed
zebreus pushed a commit to zebreus/deno that referenced this pull request Jul 8, 2024
Also don't panic on invalid domain names and addresses.

Extracted with cleanups up from denoland#24080

Co-authored-by: Yazan AbdAl-Rahman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

thread 'main' panicked at runtime/permissions/lib.rs:695:19
2 participants