-
Notifications
You must be signed in to change notification settings - Fork 46
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
Accept lists of ports #28
Conversation
Modified existing methods to work with a list of ports instead of a starting port and ending port.
, async = require('async') | ||
var net = require('net'); | ||
var Socket = net.Socket; | ||
var async = require('async'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, I recommend sticking to the current project style when submitting pull requests. Changes like adding var
or ;
are just noise. And, if they were accepted, it would make this project have a mix of styles. Please remove these changes.
This reverts commit eb5a2dd.
Implemented changes suggested. Cohesive code style and backwards compatibility. New methods are named as the old method with a "inList" suffix - for instance, findAPortNotInUseInList.
Revised changes. |
Any chance for detecting arrays from the original APIs instead of adding new methods? |
Now the original API works with both arrays and start/end ports. Detection on which method to use is based on argument number.
Yes, now both functionalities work with the original API. |
Cool. If it gets a blessing from @EndangeredMassa we can close the related issue. |
Still waiting for an update on this. |
Same. If the project maintainer does not respond or merge this within the next few days, I will carve out some time to test it so we can resolve the bounty. |
I started reviewing. |
Revert "Merge pull request baalexander#28 from darthneko/master" This reverts commit 3a271ee, reversing changes made to c2092ce.
Modified existing methods to work with a list of ports instead of a
starting port and ending port.