Skip to content

Commit

Permalink
Merge pull request #800 from Mirantis/ivan4th/fix-vnc-port
Browse files Browse the repository at this point in the history
Fix virtletctl vnc port handling
  • Loading branch information
jellonek committed Nov 15, 2018
2 parents 0810dcb + 6ef3626 commit 39d24fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/tools/vnc.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func NewVNCCmd(client KubeClient, output io.Writer, waitForInterrupt bool) *cobr
case len(args) == 2:
// port should be unprivileged and below the high ports
// range
var port int
if port, err := strconv.Atoi(args[1]); err != nil || port < 1024 || port > 61000 {
port, err := strconv.Atoi(args[1])
if err != nil || port < 1024 || port > 61000 {
return errors.New("port parameter must be an integer number in range 1000-61000")
}
vnc.port = uint16(port)
Expand Down

0 comments on commit 39d24fa

Please sign in to comment.