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 preview --host in Node.js 18 #5430

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Fix preview --host in Node.js 18 #5430

merged 1 commit into from
Nov 17, 2022

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Nov 17, 2022

Changes

Fix #5303

Properly check host address ipv4 in Node.js 18

#3599 and #4032 were incorrectly supporting the ipv4 check in node 18. It's a 18.0.0 breaking change, not from a specific minor version.

The code is copied from Vite

Testing

N/A. I manually tested with node 18.0.0 and it works with this PR.

Docs

N/A. bug fix.

@bluwy bluwy merged commit b22ba1c into main Nov 17, 2022
@bluwy bluwy deleted the preview-host-18 branch November 17, 2022 14:53
This was referenced Nov 17, 2022
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

Successfully merging this pull request may close these issues.

CLI arg --host displays network ip for "dev" but not for "preview" (on Node >=18.10)
2 participants