Skip to content

Commit

Permalink
tls: set servername on client side too
Browse files Browse the repository at this point in the history
PR-URL: nodejs#17935
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Sebastiaan Deckers <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
  • Loading branch information
jasnell committed Jan 3, 2018
1 parent 30892c8 commit b25b1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_tls_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ TLSSocket.prototype._finishInit = function() {
this.alpnProtocol = this._handle.getALPNNegotiatedProtocol();
}

if (process.features.tls_sni && this._tlsOptions.isServer) {
if (process.features.tls_sni) {
this.servername = this._handle.getServername();
}

Expand Down

0 comments on commit b25b1ef

Please sign in to comment.