Skip to content
Permalink
Browse files
Merge pull request #58 from debudda/patch-1
Update portfinder to convert option.port to number
  • Loading branch information
eriktrom committed Dec 20, 2017
2 parents 36613c1 + fba42c4 commit 24b302db391d6f4e1382cae2dd3d0f84c3276cd6
Showing 1 changed file with 3 additions and 3 deletions.
@@ -27,9 +27,9 @@ internals.testPort = function(options, callback) {
options = {};
}

options.port = options.port || exports.basePort;
options.host = options.host || null;
options.server = options.server || net.createServer(function () {
options.port = Number(options.port) || Number(exports.basePort);
options.host = options.host || null;
options.server = options.server || net.createServer(function () {
//
// Create an empty listener for the port testing server.
//

0 comments on commit 24b302d

Please sign in to comment.