Do not use hostname with tls.connect

This commit is contained in:
Fedor Indutny 2023-06-08 14:10:41 -07:00 committed by GitHub
parent a41745ec23
commit ea79b34f56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),
},
});