Skip to content

Commit 6466ac1

Browse files
jasnellkjin
authored andcommitted
tls: set servername on client side too
Backport-PR-URL: nodejs#18050 PR-URL: nodejs#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 644bd5f commit 6466ac1

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
@@ -628,7 +628,7 @@ TLSSocket.prototype._finishInit = function() {
628628
this.alpnProtocol = this.ssl.getALPNNegotiatedProtocol();
629629
}
630630

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

0 commit comments

Comments
 (0)