Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Support IPv6 in PSWebSocketServer #50

@snej

Description

@snej

Apple just announced that starting in June 2016, apps that don't support IPv6-only networks will be rejected from the App Stores. "If your app uses IPv4-specific APIs or hard-coded IP addresses, you will need to make some changes."

There is some code in PSWebSocketServer.m that constructs an IPv4 sockaddr_in from a hostname, which is then used to bind a listening socket using CFSocket.

I don't know a lot about POSIX networking APIs, so I'm not sure if this code will fail in the default case where there's no hostname given, but I'm pretty sure it will fail if a hostname is given, since it won't be able to resolve to an IPv4 address.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions