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

Fixes passing in family parameter in URL in node 18 #1673

Merged
merged 2 commits into from Nov 2, 2022

Conversation

ksmithut
Copy link
Contributor

@ksmithut ksmithut commented Nov 2, 2022

Node 18 stopped coercing the type for its options (specifically the ip family option) and instead throws an error. So if you pass in ?family=6 in your Redis URL, it would fail because when it does the DNS lookup passing in the string '6', node would throw an error.

Fixes #1672

Node 18 stopped coercing the type for its options (specifically the ip family option) and instead throws an error. So if you pass in `?family=6` in your Redis URL, it would fail because when it does the DNS lookup passing in the string `'6'`, node would throw an error.
@luin luin merged commit 6f1ab9f into redis:main Nov 2, 2022
@luin
Copy link
Collaborator

luin commented Nov 2, 2022

Thanks for the contribution! 🍺

@ksmithut ksmithut deleted the fix-family-option branch November 2, 2022 14:36
github-actions bot pushed a commit that referenced this pull request Nov 2, 2022
## [5.2.4](v5.2.3...v5.2.4) (2022-11-02)

### Bug Fixes

* passing in family parameter in URL in node 18 ([#1673](#1673)) ([6f1ab9f](6f1ab9f))
@github-actions
Copy link

github-actions bot commented Nov 2, 2022

🎉 This PR is included in version 5.2.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

janus-dev87 added a commit to janus-dev87/ioredis-work that referenced this pull request Mar 1, 2024
## [5.2.4](redis/ioredis@v5.2.3...v5.2.4) (2022-11-02)

### Bug Fixes

* passing in family parameter in URL in node 18 ([#1673](redis/ioredis#1673)) ([6f1ab9f](redis/ioredis@6f1ab9f))
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.

Node 18 family parameter fails when passing url
2 participants