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

reland "fix(cli): ipv6 parsing for --allow-net params (#6453)" #6472

Merged
merged 7 commits into from Jun 26, 2020

Conversation

bartlomieju
Copy link
Member

Co-authored-by: Liming Jin jinliming2@gmail.com

cli/resolve_hosts.rs Outdated Show resolved Hide resolved
cli/resolve_hosts.rs Outdated Show resolved Hide resolved
cli/flags.rs Outdated Show resolved Hide resolved
cli/flags.rs Outdated Show resolved Hide resolved
Comment on lines +27 to +36
pub fn validator(host_and_port: String) -> Result<(), String> {
if Url::parse(&format!("deno://{}", host_and_port)).is_ok()
|| host_and_port.parse::<IpAddr>().is_ok()
|| host_and_port.parse::<BarePort>().is_ok()
{
Ok(())
} else {
Err(format!("Bad host:port pair: {}", host_and_port))
}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Great 👍

@ry ry merged commit 4817c15 into denoland:master Jun 26, 2020
@bartlomieju bartlomieju deleted the reland_6453 branch June 26, 2020 12:10
@ColinHarrington
Copy link
Contributor

Thanks for re-landing this PR! @bartlomieju Does Issue 5518 need to stay open now that it's merged?

@bartlomieju
Copy link
Member Author

@ColinHarrington thanks for pointing it out, I'll close the issue

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.

None yet

3 participants