Skip to content

Commit

Permalink
tls: set servername on client side too
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jasnell authored and MylesBorins committed Jan 10, 2018
1 parent 9ad7a9a commit 3997617
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 @@ -627,7 +627,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 3997617

Please sign in to comment.