Skip to content

Skip TLS SNI if host is IP address - #1890

Merged
brianc merged 3 commits into
brianc:masterfrom
jrmerz:master
Nov 11, 2019
Merged

Skip TLS SNI if host is IP address#1890
brianc merged 3 commits into
brianc:masterfrom
jrmerz:master

Conversation

@jrmerz

@jrmerz jrmerz commented May 8, 2019

Copy link
Copy Markdown
Contributor

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
Comment thread lib/connection.js Outdated
@brianc

brianc commented Nov 11, 2019

Copy link
Copy Markdown
Owner

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.

3 participants