-
Notifications
You must be signed in to change notification settings - Fork 537
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
Connect to IPv6 with interface fails #293
Comments
In general IPv6 addresses in URLs need to be wrapped in Can you try and build a |
With this patch it could be possible to do it like this: redis::Client::open(("fe80::cafe:beef%eno1", 6379)) |
I used ConnectionInfo with ipv6 address wrapped in [] but failed with following error.
|
You shouldn't need the brackets ( |
yup, removed [] and it worked. |
There are places that connect() still uses string url stored in slots(ex: "redis://fd00:10:0:5:5861:50ff:fe00:85:6379") instead of ConnectionInfo. Can those be updated to use ConnectionInfo instead?
|
Can you open a separate issue for that? |
A TCP connection only needs a host and a port. These can be passed in as a tuple now: redis::Client::open(("127.0.0.1", 6379)) In addition one should be able to specify an interface: redis::Client::open(("fe80::cafe:beef%eno1", 6379)) Fixes #293
A TCP connection only needs a host and a port. These can be passed in as a tuple now: redis::Client::open(("127.0.0.1", 6379)) In addition one should be able to specify an interface: redis::Client::open(("fe80::cafe:beef%eno1", 6379)) Fixes #293
I'm trying to connect to an IPv6 redis server the same way as with the
redis-cli
command below:I'm trying to do it with the rust code
But when I run it, I get the following error:
I also tried this alternative syntax, but I got the same result.
The text was updated successfully, but these errors were encountered: