We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get-port
1 parent 101be8e commit 4407ac9Copy full SHA for 4407ac9
packages/sirv-cli/index.js
@@ -78,7 +78,7 @@ module.exports = function (dir, opts) {
78
});
79
}
80
81
- opts.port = PORT || opts.port;
+ opts.port = +(PORT || opts.port);
82
let hostname = HOST || opts.host || '0.0.0.0';
83
toPort({ host: hostname, port: opts.port }).then(port => {
84
let isOther = port != opts.port;
0 commit comments