Skip to content

Commit b25b1ef

Browse files
committed
tls: set servername on client side too
PR-URL: #17935 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Sebastiaan Deckers <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent 30892c8 commit b25b1ef

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
@@ -621,7 +621,7 @@ TLSSocket.prototype._finishInit = function() {
621621
this.alpnProtocol = this._handle.getALPNNegotiatedProtocol();
622622
}
623623

624-
if (process.features.tls_sni && this._tlsOptions.isServer) {
624+
if (process.features.tls_sni) {
625625
this.servername = this._handle.getServername();
626626
}
627627

0 commit comments

Comments
 (0)