Skip to content

Commit

Permalink
Merge pull request #58 from debudda/patch-1
Browse files Browse the repository at this point in the history
Update portfinder to convert option.port to number
  • Loading branch information
eriktrom committed Dec 20, 2017
2 parents 36613c1 + fba42c4 commit 24b302d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/portfinder.js
Expand Up @@ -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.
//
Expand Down

0 comments on commit 24b302d

Please sign in to comment.