mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
refactor(server) condition port: "<= 0" -> "< 1"
This commit is contained in:
parent
8dff85e291
commit
8cce30c9ad
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@
|
|||
socket: io.listen(server)
|
||||
}));
|
||||
|
||||
if (port <= 0 || port > 65535)
|
||||
if (port < 1 || port > 65535)
|
||||
exit('cloudcmd --port: %s', 'port number could be 1..65535');
|
||||
|
||||
server.on('error', function(error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue