Skip to content

Commit

Permalink
Merge pull request #275 from rlucia/master
Browse files Browse the repository at this point in the history
65535/tcp is a valid port number
  • Loading branch information
huashengdun authored Mar 11, 2022
2 parents 86c98da + 3c0b0fb commit 685e1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webssh/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ jQuery(function($){
if (!port) {
port = 22;
} else {
if (!(port > 0 && port < 65535)) {
if (!(port > 0 && port <= 65535)) {
errors.push('Invalid port: ' + port);
}
}
Expand Down

0 comments on commit 685e1a7

Please sign in to comment.