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

Add HostnamePort::localhost(u16) constructor to HostnamePort #8712

Open
adrianbenavides opened this issue Dec 18, 2024 · 2 comments
Open

Add HostnamePort::localhost(u16) constructor to HostnamePort #8712

adrianbenavides opened this issue Dec 18, 2024 · 2 comments

Comments

@adrianbenavides
Copy link
Member

Current behavior

We currently use HostnamePort::new("127.0.0.1", 0) which returns a result, and in this case, we know it's a valid hostname.

Desired behavior

Add a new constructor HostnamePort::localhost(u16) that doesn't return a Result and replace usages.

@albertye1
Copy link

Hi, I'd like to take this on.

@ilyaaay
Copy link
Contributor

ilyaaay commented Jan 10, 2025

@adrianbenavides #8737

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants