Try multiple ports

This commit is contained in:
Tim Schaub
2015-07-09 10:49:24 -06:00
parent 7780d77ade
commit 4549d2f7a8
2 changed files with 42 additions and 9 deletions

View File

@@ -31,8 +31,11 @@ function listen(min, max, server, callback) {
callback(err);
}
});
server.listen(port, '127.0.0.1', callback);
server.listen(port, '127.0.0.1');
}
server.once('listening', function() {
callback(null);
});
_listen(min);
}