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 IP addresses in server names #302

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Conversation

jsha
Copy link
Collaborator

@jsha jsha commented Mar 22, 2023

This actually involved basically no changes in functionality. It updates documentation to be clear that IP addresses are allowed, and updates some field and parameter names from dns_name or sni_name to server_name.

Note: there's one fix still needed after this. InvalidDnsNameError => write!(f, "hostname was either malformed or an IP address (rustls does not support certificates for IP addresses)"), should become "InvalidDnsNameError => write!(f, "server name was malformed (not a valid hostname or IP address)". But that was likely to cause conflicts with @cpu's in-progress fix for #297 so I'm omitting it for now.

Fixes #292

@jsha jsha requested a review from cpu March 22, 2023 21:44
Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks :-)

@jsha jsha merged commit a6da979 into rustls-0.21.0 Mar 22, 2023
@jsha jsha deleted the servername-ipaddress branch March 22, 2023 22:19
jsha added a commit that referenced this pull request Mar 29, 2023
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.

2 participants