Skip to content

Commit 95c1e2d

Browse files
jasnellMylesBorins
authored andcommitted
tls: set servername on client side too
Backport-PR-URL: #18050 Backport-PR-URL: #20456 PR-URL: #17935 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Sebastiaan Deckers <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent 1a24fec commit 95c1e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/_tls_wrap.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ TLSSocket.prototype._finishInit = function(){
628628
this.alpnProtocol=this.ssl.getALPNNegotiatedProtocol();
629629
}
630630

631-
if(process.features.tls_sni&&this._tlsOptions.isServer){
631+
if(process.features.tls_sni){
632632
this.servername=this._handle.getServername();
633633
}
634634

0 commit comments

Comments
(0)