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(); }