mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-10 14:58:27 +00:00
bugfix
This commit is contained in:
parent
5e87fd0707
commit
b63ddcf955
@ -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;
|
Loading…
x
Reference in New Issue
Block a user