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

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