Do not use hostname with tls.connect
This commit is contained in:
@@ -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,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user