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 · 1 comment
Open

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.

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

2 participants