Skip to content

Commit

Permalink
refactor(maxNumber): replaced hard coded number with variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoMamerow committed Apr 14, 2023
1 parent 03d1c3a commit 1a33ccd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/cli.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function getPortnumber() {
}

// Prevent unwanted ports.
const notWantedPorts = [0, 79, 80, 87, 88, 442, 443, 2999, 3000, 8079, 8080, 8442, 8443, 8887, 8888, 65535]
const notWantedPorts = [0, 79, 80, 87, 88, 442, 443, 2999, 3000, 8079, 8080, 8442, 8443, 8887, 8888, maxNumber]
if (notWantedPorts.includes(portnumber)) {
getPortnumber()
}
Expand Down

0 comments on commit 1a33ccd

Please sign in to comment.