Skip to content

IPv4 loopback overridden #283

Open
Open
@TownCube

Description

Commit 9fd7397 states

prefer IPv6 loopback when available (::) instead of IPv4 loopback (0.0.0.0), unless 0.0.0.0 is explicitly passed.

However this commit now always uses the IPv6 loopback even when the IPv4 loopback (0.0.0.0) is explicitly passed.

    if (!options.hostname || options.hostname === '*' || options.hostname === '0.0.0.0') {
      options.hostname = '::';
    }

This breaks IPv4 only environments with error:

Fatal error: listen EAFNOSUPPORT: address family not supported :::8081

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

    Issue actions