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

Skip TLS SNI if host is IP address #1890

Merged
merged 3 commits into from Nov 11, 2019
Merged

Skip TLS SNI if host is IP address #1890

merged 3 commits into from Nov 11, 2019

Conversation

jrmerz
Copy link
Sponsor Contributor

@jrmerz jrmerz commented May 8, 2019

Currently the host is always set to the tls.connect() servername option, even if the host is a ip address. This triggers the following depreciation warning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066.

The patch will only set the servername option in tls.connect() if net.isIP(host) === 0.

@jrmerz jrmerz changed the title skip TLS SNI if host is IP address Skip TLS SNI if host is IP address May 8, 2019
lib/connection.js Outdated Show resolved Hide resolved
@brianc
Copy link
Owner

brianc commented Nov 11, 2019

thank you! sorry for the delay - new release w/ this coming out on Wednesday.

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