From ea79b34f565e7c4a76db30672d47262ee3c3ea0c Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 8 Jun 2023 14:10:41 -0700 Subject: [PATCH] Do not use hostname with tls.connect --- ts/util/createHTTPSAgent.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/util/createHTTPSAgent.ts b/ts/util/createHTTPSAgent.ts index 44194e3560..c99c5a17c2 100644 --- a/ts/util/createHTTPSAgent.ts +++ b/ts/util/createHTTPSAgent.ts @@ -91,8 +91,7 @@ export class Agent extends HTTPSAgent { port, tlsOptions: { ca: options.ca, - host: dropNull(options.host), - servername: options.servername, + servername: options.servername ?? dropNull(options.host), }, });