telnet-client
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -33,3 +33,3 @@ // Node.js Telnet client | ||
this.irs = (typeof opts.irs !== 'undefined' ? opts.irs : '\r\n'); | ||
this.ors = (typeof opts.ors !== 'undefined' ? opts.ors : '\r\n'); | ||
this.ors = (typeof opts.ors !== 'undefined' ? opts.ors : '\n'); | ||
this.echoLines = (typeof opts.echoLines !== 'undefined' ? opts.echoLines : 1); | ||
@@ -162,3 +162,3 @@ this.response = ''; | ||
if (telnetObj.telnetSocket.writable) { | ||
telnetObj.telnetSocket.write(telnetObj.username + '\r\n', function() { | ||
telnetObj.telnetSocket.write(telnetObj.username + telnetObj.ors, function() { | ||
telnetObj.telnetState = 'getprompt'; | ||
@@ -170,3 +170,3 @@ }); | ||
if (telnetObj.telnetSocket.writable) { | ||
telnetObj.telnetSocket.write(telnetObj.password + '\r\n', function() { | ||
telnetObj.telnetSocket.write(telnetObj.password + telnetObj.ors, function() { | ||
telnetObj.telnetState = 'getprompt'; | ||
@@ -173,0 +173,0 @@ }); |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "./lib/telnet-client.js", | ||
@@ -11,0 +11,0 @@ "engine": "node >= 0.10.23", |
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
11275