Do not use hostname with tls.connect
This commit is contained in:
parent
a41745ec23
commit
ea79b34f56
1 changed files with 1 additions and 2 deletions
|
@ -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),
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue