diff --git a/ts/util/createHTTPSAgent.ts b/ts/util/createHTTPSAgent.ts index 44194e35606d..c99c5a17c2ae 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), }, });