mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user