Skip to content

Commit

Permalink
Do not use hostname with tls.connect
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Jun 8, 2023
1 parent 62afa4b commit 02aef88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ts/util/createHTTPSAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
});

Expand Down

0 comments on commit 02aef88

Please sign in to comment.