Skip to content

Commit

Permalink
Fixed an issue around parsing client max and min ports
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu committed Mar 9, 2016
1 parent 2524231 commit 4478238
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions command/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ func (a *Agent) clientConfig() (*clientconfig.Config, error) {
}
conf.MaxKillTimeout = dur
}
conf.ClientMaxPort = a.config.Client.ClientMaxPort
conf.ClientMinPort = a.config.Client.ClientMinPort
conf.ClientMaxPort = uint(a.config.Client.ClientMaxPort)
conf.ClientMinPort = uint(a.config.Client.ClientMinPort)

// Setup the node
conf.Node = new(structs.Node)
Expand Down
4 changes: 2 additions & 2 deletions command/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ type ClientConfig struct {

// ClientMaxPort is the upper range of the ports that the client uses for
// communicating with plugin subsystems
ClientMaxPort uint `hcl:"client_max_port"`
ClientMaxPort int `hcl:"client_max_port"`

// ClientMinPort is the lower range of the ports that the client uses for
// communicating with plugin subsystems
ClientMinPort uint `hcl:"client_min_port"`
ClientMinPort int `hcl:"client_min_port"`
}

// ServerConfig is configuration specific to the server mode
Expand Down

0 comments on commit 4478238

Please sign in to comment.