Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/base/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ class BaseConnection extends EventEmitter {
});
const rejectUnauthorized = this.config.ssl.rejectUnauthorized;
const verifyIdentity = this.config.ssl.verifyIdentity;
const servername = this.config.host;
let servername = undefined;
// only set servername for SNI and identity check if host is not an IP address
if (!Net.isIP(this.config.host)) {
servername = this.config.host;
}

let secureEstablished = false;
this.stream.removeAllListeners('data');
Expand Down
Loading