-
Notifications
You must be signed in to change notification settings - Fork 478
Add the redis-family configuration option for ioredis to support ipv6 #532
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
base: master
Are you sure you want to change the base?
Conversation
… ioredis for ipv6 support
… from an environment variable
I see this commit now: sseide@fba7e53 In my case I would still like to set the family because for the host I use a hostname instead of an IP address. But I'm updating the default that I set to 0 instead of 4 and checking out the util file. |
Ok so it seems to me that So in It seems to me this should cover everything but I'm unsure about including |
Lol well, I double checked and the value |
thanks for the PR. but as you already found out latest version was working :-) |
Maybe wouldn't hurt. But I can't think of any use cases off hand. I need to use ipv4 for development and ipv6 for stage/production and the |
Let me know if I covered everything here, i'll make any changes you'd like to see or add something that I missed.
I added:
This adds support for the
[options.family]
param as found here: https://ioredis.readthedocs.io/en/latest/API/Although it says
string
there, type checking expects a number and it works with a number.I needed this feature so I could deploy this project on Fly.io. Everything on Fly.io uses ipv6 internally so connecting to Redis must be done using ipv6.