From b25b1efa0a6801cdf3faea199a36e0e2cc489395 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 1 Jan 2018 11:13:05 -0800 Subject: [PATCH] tls: set servername on client side too PR-URL: https://github.com/nodejs/node/pull/17935 Reviewed-By: Anatoli Papirovski Reviewed-By: Sebastiaan Deckers Reviewed-By: Tiancheng "Timothy" Gu --- lib/_tls_wrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 32fd1f322e..bb25eb5f15 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -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(); }