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

Support IPv6 #1816

Open
CreateRan opened this issue Feb 24, 2025 · 0 comments
Open

Support IPv6 #1816

CreateRan opened this issue Feb 24, 2025 · 0 comments

Comments

@CreateRan
Copy link

I write a test code to listen ipv6 address with uri "http://[::]:34962" on linux, but exception is thrown:
resolve: Service not found [asio.addrinfo:-8]
It seems there is issue in the constructor of class hostport_listener, the hostname and port number are resolved simply by using colons as separators. This approach works for IPv4 URLs in the form x.x.x.x:port (e.g., 0.0.0.0:34962). However, for IPv6 addresses, which inherently contain colons, this method fails. Could you please help confirm? Thank you.

Image

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

No branches or pull requests

1 participant