mysql2 3.15.2 → 3.15.3-canary.6000eb2f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -345,7 +345,9 @@ class BaseConnection extends EventEmitter {
345
345
  });
346
346
  const rejectUnauthorized = this.config.ssl.rejectUnauthorized;
347
347
  const verifyIdentity = this.config.ssl.verifyIdentity;
348
- const servername = this.config.host;
348
+ const servername = Net.isIP(this.config.host)
349
+ ? undefined
350
+ : this.config.host;
349
351
 
350
352
  let secureEstablished = false;
351
353
  this.stream.removeAllListeners('data');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.15.2",
3
+ "version": "3.15.3-canary.6000eb2f",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "typings": "typings/mysql/index",