From b878c7c3ff4e807ed1366a67bcf5e809adf82efe Mon Sep 17 00:00:00 2001 From: David Bond Date: Mon, 12 Jan 2015 21:27:57 +0000 Subject: [PATCH] Pass servername to TLS --- lib/nntp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nntp.js b/lib/nntp.js index 939afab..28ba8c0 100644 --- a/lib/nntp.js +++ b/lib/nntp.js @@ -162,7 +162,7 @@ NNTP.prototype.connect = function(options) { var socket = this._socket = new Socket(); this._socket.setTimeout(0); if (this.options.secure) - socket = tls.connect({ socket: this._socket }, onconnect); + socket = tls.connect({ socket: this._socket, servername:this.options.host }, onconnect); else this._socket.once('connect', onconnect); function onconnect() {