Skip to content

Support IPv6 #1816

@CreateRan

Description

@CreateRan

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @CreateRan

        Issue actions

          Support IPv6 · Issue #1816 · microsoft/cpprestsdk