diff options
author | James M Snell <jasnell@gmail.com> | 2018-01-01 11:13:05 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-01-03 11:29:39 -0800 |
commit | b25b1efa0a6801cdf3faea199a36e0e2cc489395 (patch) | |
tree | c447eedcfaab08ff9abe357febaf3cee4e0796f6 /lib | |
parent | 30892c8fb432ac8ee33eae1144bcce704906a855 (diff) | |
download | android-node-v8-b25b1efa0a6801cdf3faea199a36e0e2cc489395.tar.gz android-node-v8-b25b1efa0a6801cdf3faea199a36e0e2cc489395.tar.bz2 android-node-v8-b25b1efa0a6801cdf3faea199a36e0e2cc489395.zip |
tls: set servername on client side too
PR-URL: https://github.com/nodejs/node/pull/17935
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Sebastiaan Deckers <sebdeckers83@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_tls_wrap.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |