We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a106df1 commit 6000eb2Copy full SHA for 6000eb2
lib/base/connection.js
@@ -345,7 +345,9 @@ class BaseConnection extends EventEmitter {
345
});
346
const rejectUnauthorized = this.config.ssl.rejectUnauthorized;
347
const verifyIdentity = this.config.ssl.verifyIdentity;
348
- const servername = this.config.host;
+ const servername = Net.isIP(this.config.host)
349
+ ? undefined
350
+ : this.config.host;
351
352
let secureEstablished = false;
353
this.stream.removeAllListeners('data');
0 commit comments