Skip to content

Commit

Permalink
fixup! Support configurable dynamic port range
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Zagaevskiy committed Oct 11, 2021
1 parent c615870 commit 0620bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (c *Command) isValidConfig(config, cmdConfig *Config) bool {
return false
}

if config.Client.MinDynamicPort > 0 && config.Client.MaxDynamicPort > 0 &&
if config.Client.MinDynamicPort < 0 || config.Client.MaxDynamicPort > 65535 ||
config.Client.MinDynamicPort >= config.Client.MaxDynamicPort {
c.Ui.Error("Invalid dynamic port range")
return false
Expand Down

0 comments on commit 0620bb0

Please sign in to comment.