diff --git a/lib/core/connection/connect.js b/lib/core/connection/connect.js index 05125a3d4e..bd10535466 100644 --- a/lib/core/connection/connect.js +++ b/lib/core/connection/connect.js @@ -243,7 +243,7 @@ function parseSslOptions(family, options) { } // Set default sni servername to be the same as host - if (result.servername == null) { + if (result.servername == null && !net.isIP(result.host)) { result.servername = result.host; }