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,
|
port,
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
ca: options.ca,
|
ca: options.ca,
|
||||||
host: dropNull(options.host),
|
servername: options.servername ?? dropNull(options.host),
|
||||||
servername: options.servername,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue