diff --git a/lib/imap.js b/lib/imap.js index 0e2906e..5140a8f 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -127,9 +127,8 @@ ImapConnection.prototype.connect = function(loginCb) { if (this._options.secure) { var tlsOptions = {}; - for (var k in this._options.secure) { + for (var k in this._options.secure) tlsOptions[k] = this._options.secure[k]; - } tlsOptions.socket = state.conn; if (process.version.indexOf('v0.6.') > -1) socket = tls.connect(null, tlsOptions, onconnect);