Skip to content

Commit 647e01d

Browse files
jasnellMylesBorins
authored andcommitted
tls: set servername on client side too
Backport-PR-URL: #18050 PR-URL: #17935 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Sebastiaan Deckers <sebdeckers83@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
1 parent 930dd8e commit 647e01d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion
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)