Skip to content

Commit 3997617

Browse files
jasnellMylesBorins
authored andcommitted
tls: set servername on client side too
Backport-PR-URL: #18050 PR-URL: #17935 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Sebastiaan Deckers <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent 9ad7a9a commit 3997617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_wrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ TLSSocket.prototype._finishInit = function() {
627627
this.alpnProtocol = this._handle.getALPNNegotiatedProtocol();
628628
}
629629

630-
if (process.features.tls_sni && this._tlsOptions.isServer) {
630+
if (process.features.tls_sni) {
631631
this.servername = this._handle.getServername();
632632
}
633633

0 commit comments

Comments
 (0)