This commit is contained in:
加里 2014-08-09 16:41:43 +08:00
parent 5e87fd0707
commit b63ddcf955

View File

@ -1,6 +1,6 @@
var portrange = 40000;
module.exports = function(cb) {
function getPort(cb) {
var port = portrange;
++portrange;
@ -14,4 +14,6 @@ module.exports = function(cb) {
server.on('error', function (err) {
getPort(cb);
});
};
};
module.exports = getPort;