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

IPv4 loopback overridden #283

Open
TownCube opened this issue Oct 15, 2023 · 0 comments
Open

IPv4 loopback overridden #283

TownCube opened this issue Oct 15, 2023 · 0 comments

Comments

@TownCube
Copy link

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
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