Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix port reporting #16

Merged
merged 1 commit into from
Feb 6, 2014
Merged

fix port reporting #16

merged 1 commit into from
Feb 6, 2014

Conversation

EndangeredMassa
Copy link
Contributor

This fixes an issue where the found port was not reported properly. The output from the examples now looks like:

$ node example/portscan.js 
Found a closed port at 3000
{ [Error: connect ECONNREFUSED]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect' }
Status at port 3000 is closed
{ [Error: connect ECONNREFUSED]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect' }
Status at port 3005 is open
Found an open port at 3005

This fixes #15

EndangeredMassa added a commit that referenced this pull request Feb 6, 2014
@EndangeredMassa EndangeredMassa merged commit 4a1f8f8 into master Feb 6, 2014
@EndangeredMassa EndangeredMassa deleted the fix-port-finding branch February 6, 2014 02:58
@EndangeredMassa
Copy link
Contributor Author

published in 0.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scanning for a port in use/not in use always returns error as true, port as undefined
1 participant