Skip to content

Commit b25b1ef

Browse files
committed
tls: set servername on client side too
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 30892c8 commit b25b1ef

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
@@ -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)