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

fix(dev): prefer localhost over [::] for internal networking #242

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Oct 3, 2023

Related to #181

This PR fixes issues with nuxt dev --no-fork when running inside a Docker container.

Docker networking by default is IPv4 only while Node.js listener address reports an IPv6 anyhost.

This PR, handles this special case by preferring localhost over [::] (reported by Node). Since anyhost is also reachable via localhost, this also works outside of Docker environments.

@pi0 pi0 added the docker label Oct 3, 2023
@pi0 pi0 merged commit a6acb6a into main Oct 3, 2023
2 checks passed
@pi0 pi0 deleted the fix/vite-addr branch October 3, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant