Skip to content

Commit

Permalink
Use the correct host when falling back
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 21, 2018
1 parent af65ada commit 1d9e4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ const getPort = (options = {}) => {
};

module.exports = options => options ?
getPort(options).catch(() => getPort({port: 0})) :
getPort(options).catch(() => getPort(Object.assign(options, {port: 0}))) :
getPort({port: 0});

0 comments on commit 1d9e4ee

Please sign in to comment.