telnet-client
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -8,2 +8,3 @@ import { EventEmitter } from 'events'; | ||
port?: number; | ||
localAddress?: string; | ||
timeout?: number; | ||
@@ -10,0 +11,0 @@ shellPrompt?: string; |
@@ -22,2 +22,3 @@ 'use strict' | ||
const port = (typeof opts.port !== 'undefined' ? opts.port : 23) | ||
const localAddress = (typeof opts.localAddress !== 'undefined' ? opts.localAddress : '') | ||
this.timeout = (typeof opts.timeout !== 'undefined' ? opts.timeout : 500) | ||
@@ -63,3 +64,4 @@ | ||
port, | ||
host | ||
host, | ||
localAddress | ||
}, () => { | ||
@@ -66,0 +68,0 @@ this.state = 'start' |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "./lib/index.js", | ||
@@ -72,4 +72,8 @@ "types": "./lib/index.d.ts", | ||
"name": "HaykoKoryun" | ||
}, | ||
{ | ||
"name": "Ivan Sieder", | ||
"email": "ivan@sieder.xyz" | ||
} | ||
] | ||
} |
@@ -210,3 +210,4 @@ [](https://github.com/mkozjak/node-telnet-client/blob/master/LICENSE) | ||
* `port`: Port the client should connect to. Defaults to '23'. | ||
* `timeout`: Sets the socket to timeout after the specified number of milliseconds | ||
* `localAddress`: Local interface to bind for network connections. Defaults to an empty string. More information can be found [here](https://nodejs.org/api/net.html#net_socket_localaddress). | ||
* `timeout`: Sets the socket to timeout after the specified number of milliseconds. | ||
of inactivity on the socket. | ||
@@ -213,0 +214,0 @@ * `shellPrompt`: Shell prompt that the host is using. Can be a string or an instance of RegExp. Defaults to regex '/(?:\/ )?#\s/'. |
49337
1080
337