From 647e01d91328059436102b8238a4a09fdc7eca71 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 Backport-PR-URL: https://github.com/nodejs/node/pull/18050 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 062fdd402bcf2d..d888d777353a76 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -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(); }