mx-connect
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -11,5 +11,3 @@ /* eslint no-console: 0 */ | ||
target: process.argv[2] || 'gmail.com', | ||
port: Number(process.argv[3]) || 25, | ||
mx: 'mail.outfunnel.com', | ||
localAddres: '217.146.66.10' | ||
port: Number(process.argv[3]) || 25 | ||
}, | ||
@@ -16,0 +14,0 @@ (err, mx) => { |
@@ -90,6 +90,6 @@ 'use strict'; | ||
// no local address set | ||
!delivery.localAddres || | ||
!delivery.localAddress || | ||
// mismatch between IP versions | ||
(net.isIPv6(mx.host) && !net.isIPv6(delivery.localAddres)) || | ||
(net.isIPv4(mx.host) && !net.isIPv4(delivery.localAddres)) | ||
(net.isIPv6(mx.host) && !net.isIPv6(delivery.localAddress)) || | ||
(net.isIPv4(mx.host) && !net.isIPv4(delivery.localAddress)) | ||
) { | ||
@@ -96,0 +96,0 @@ delivery.localAddress = net.isIPv6(mx.host) ? delivery.localAddressIPv6 : delivery.localAddressIPv4; |
{ | ||
"name": "mx-connect", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Establish TCP connection to a MX server", | ||
@@ -13,3 +13,7 @@ "main": "lib/mx-connect.js", | ||
}, | ||
"keywords": ["mx", "smtp", "mta"], | ||
"keywords": [ | ||
"mx", | ||
"smtp", | ||
"mta" | ||
], | ||
"author": "Andris Reinman", | ||
@@ -25,3 +29,3 @@ "license": "EUPL-1.1+", | ||
"grunt-cli": "^1.2.0", | ||
"grunt-contrib-nodeunit": "^1.0.0", | ||
"grunt-contrib-nodeunit": "^2.0.0", | ||
"grunt-eslint": "^20.1.0" | ||
@@ -28,0 +32,0 @@ }, |
@@ -71,3 +71,3 @@ # mx-connect | ||
* **port** is the port used to connect | ||
* **localAddres** is the local IP address used for the connection | ||
* **localAddress** is the local IP address used for the connection | ||
* **localPort** is the local port used for the connection | ||
@@ -74,0 +74,0 @@ |
52713
900