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

Support ipv6 connect for #290 #293 #332 #470 #679

Merged
merged 1 commit into from Sep 14, 2022
Merged

Support ipv6 connect for #290 #293 #332 #470 #679

merged 1 commit into from Sep 14, 2022

Conversation

buaazp
Copy link
Contributor

@buaazp buaazp commented Sep 9, 2022

Connect to ipv6 addr failed because url.host().to_string() got a [fdbd:dc02:ff:1:1:174:229:45] String.

Which cannot parse to IPv6Addr:
https://doc.rust-lang.org/src/std/net/addr.rs.html#963-980

Just use IPv6Addr's to_string() aka Display trait can fix it.
https://doc.rust-lang.org/src/std/net/ip.rs.html#1758-1850

Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

redis/Cargo.toml Outdated Show resolved Hide resolved
redis/src/connection.rs Outdated Show resolved Hide resolved
@buaazp
Copy link
Contributor Author

buaazp commented Sep 13, 2022

Updated follow the review comments. And added some ipv6 test cases to make sure this change is OK.

@djc djc requested a review from jaymell September 13, 2022 09:49
@jaymell jaymell merged commit 79fde68 into redis-rs:main Sep 14, 2022
@buaazp buaazp deleted the support-ipv6 branch September 14, 2022 04:39
This was referenced Sep 14, 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.

None yet

3 participants