portscanner
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -94,4 +94,3 @@ var net = require('net') | ||
// Return after the socket has closed | ||
socket.on('close', function(exception) { | ||
if (exception) error = exception | ||
socket.on('close', function() { | ||
callback(error, status) | ||
@@ -121,5 +120,2 @@ }) | ||
foundPort = true | ||
callback(error, port) | ||
} | ||
else if (error) { | ||
callback(error) | ||
@@ -129,3 +125,3 @@ } | ||
port++ | ||
callback(null, false) | ||
callback(null) | ||
} | ||
@@ -139,3 +135,3 @@ }) | ||
if (error) { | ||
callback(error) | ||
callback(error, port) | ||
} | ||
@@ -142,0 +138,0 @@ else if (foundPort) { |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"preferGlobal": false, | ||
@@ -14,0 +14,0 @@ "homepage": "https://github.com/baalexander/node-portscanner", |
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
8517
126