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() {