smtp-connection
Advanced tools
Comparing version 2.2.4 to 2.2.5
# Changelog | ||
## v2.2.5 2016-02-11 | ||
* Fixed an issue with proxied sockets and TLS | ||
## v2.2.4 2016-02-11 | ||
@@ -4,0 +8,0 @@ |
@@ -168,3 +168,3 @@ 'use strict'; | ||
if (this.options.secure && !this.options.secured) { | ||
this._upgradeConnection(function (err) { | ||
setImmediate(this._upgradeConnection.bind(this, function (err) { | ||
if (err) { | ||
@@ -175,3 +175,3 @@ this._onError(new Error('Error initiating TLS - ' + (err.message || err)), 'ETLS'); | ||
this._onConnect(); | ||
}.bind(this)); | ||
}.bind(this))); | ||
} else { | ||
@@ -376,2 +376,8 @@ setImmediate(this._onConnect.bind(this)); | ||
// clear existing listeners for the socket | ||
this._socket.removeAllListeners('data'); | ||
this._socket.removeAllListeners('timeout'); | ||
this._socket.removeAllListeners('close'); | ||
this._socket.removeAllListeners('end'); | ||
this._socket.on('data', this._onData.bind(this)); | ||
@@ -378,0 +384,0 @@ this._socket.once('close', this._onClose.bind(this)); |
{ | ||
"name": "smtp-connection", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Connect to SMTP servers", | ||
@@ -28,3 +28,3 @@ "main": "lib/smtp-connection.js", | ||
"grunt": "^0.4.5", | ||
"grunt-eslint": "^17.3.1", | ||
"grunt-eslint": "^18.0.0", | ||
"grunt-mocha-test": "^0.12.7", | ||
@@ -31,0 +31,0 @@ "mocha": "^2.4.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50793
1109