diff --git a/command/agent/agent.go b/command/agent/agent.go index 4a52fefe30c..f1f9ab07df3 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -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) diff --git a/command/agent/config.go b/command/agent/config.go index acf3e9192cd..785b80b8ea9 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -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