Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31441f4

Browse filesBrowse files
sam-githubMylesBorins
authored andcommitted
doc: describe what tls servername is for
Docs should describe the purpose of the option. PR-URL: #24236 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 0c206e0 commit 31441f4
Copy full SHA for 31441f4

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/tls.md‎

Copy file name to clipboardExpand all lines: doc/api/tls.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,10 @@ changes:
892892
first byte is the length of the next protocol name. Passing an array is
893893
usually much simpler, e.g. `['hello', 'world']`.
894894
* `servername`: {string} Server name for the SNI (Server Name Indication) TLS
895-
extension. It must be a host name, and not an IP address.
895+
extension. It is the name of the host being connected to, and must be a host
896+
name, and not an IP address. It can be used by a multi-homed server to
897+
choose the correct certificate to present to the client, see the
898+
`SNICallback` option to [`tls.createServer()`][].
896899
* `checkServerIdentity(servername, cert)` {Function} A callback function
897900
to be used (instead of the builtin `tls.checkServerIdentity()` function)
898901
when checking the server's hostname (or the provided `servername` when

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.