mx-connect
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -49,3 +49,3 @@ 'use strict'; | ||
emitConnectHook: options.emitConnectHook | ||
connectHook: options.connectHook | ||
}; | ||
@@ -52,0 +52,0 @@ |
{ | ||
"name": "mx-connect", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Establish TCP connection to a MX server", | ||
@@ -5,0 +5,0 @@ "main": "lib/mx-connect.js", |
@@ -49,5 +49,5 @@ # mx-connect | ||
* **port** is the port number to connect to. Defaults to 25. | ||
* **localAddres** is the local IP address to use for the connection | ||
* **localAddresIPv4** is the local IPv4 address to use for the connection if you want to specify an address both for IPv4 and IPv6 | ||
* **localAddresIPv6** is the local IPv6 address to use for the connection if you want to specify an address both for IPv4 and IPv6 | ||
* **localAddress** is the local IP address to use for the connection | ||
* **localAddressIPv4** is the local IPv4 address to use for the connection if you want to specify an address both for IPv4 and IPv6 | ||
* **localAddressIPv6** is the local IPv6 address to use for the connection if you want to specify an address both for IPv4 and IPv6 | ||
* **dnsOptions** is an object for IP address related options | ||
@@ -62,3 +62,3 @@ * **ignoreIPv6** (boolean, defaults to `false`) If true then never use IPv6 addresses for sending | ||
* **AAAA** is an array of IPv6 addresses. Optional, resolved from exchange hostname if not set | ||
* **emitConnectHook** _function (options, socketOptions, callback)_ is a function handler to run before establishing a tcp connection to current target (defined in `socketOptions`). If the `socketOptions` object has a `socket` property after the callback then connection is not established. Useful if you want to divert the connection is ome cases, for example if the target domain is in the Onion network then you could create a socket against a SOCK proxy yourself. | ||
* **connectHook** _function (options, socketOptions, callback)_ is a function handler to run before establishing a tcp connection to current target (defined in `socketOptions`). If the `socketOptions` object has a `socket` property after the callback then connection is not established. Useful if you want to divert the connection is ome cases, for example if the target domain is in the Onion network then you could create a socket against a SOCK proxy yourself. | ||
@@ -65,0 +65,0 @@ ### Connection object |
52751