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

Do not try to resolve bracketed IP addresses #54

Merged
merged 1 commit into from
Mar 11, 2020
Merged

Do not try to resolve bracketed IP addresses #54

merged 1 commit into from
Mar 11, 2020

Conversation

adamreichold
Copy link
Contributor

@adamreichold adamreichold commented Mar 11, 2020

URL can contain IP addresses within brackets like "http://[::1]" which should
not be resolve as a domain name but rather used as-is as an IP address.

This change therefore makes use of Url::host instead of Url::host_str to determine
the address to connect with whereas Url::host_str continues to be used for TLS
authentication as this is always based on domain names.

Closes #53

URL can contain IP addresses within brackets like "http://[::1]" which should
not be resolve as a domain name but rather used as-is as an IP address.

This change therefore makes use of Url::host instead of Url::host_str to determine
the address to connect with whereas Url::host_str continues to be used for TLS
authentication as this is always based on domain names.
@adamreichold
Copy link
Contributor Author

@gh0st42 Could you give this a try?

@gh0st42
Copy link

gh0st42 commented Mar 11, 2020

Issue seems to be resolved!

Thanks

@sbstp sbstp merged commit eb86a31 into sbstp:master Mar 11, 2020
@sbstp
Copy link
Owner

sbstp commented Mar 11, 2020

Hello! Thanks for the report & the fix. I just published this in version 0.12.0.

@adamreichold adamreichold deleted the do-no-resolve-bracketed-addresses branch April 10, 2020 08:54
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.

Support for IPv6 addresses
3 participants