mirror of https://github.com/status-im/consul.git
Apply suggestions from code review
Co-authored-by: R.B. Boyer <4903+rboyer@users.noreply.github.com>
This commit is contained in:
parent
4ad80ccee3
commit
233d03dbbd
|
@ -718,8 +718,8 @@ type RuntimeConfig struct {
|
||||||
// XDSPort is the port the xDS gRPC server listens on. This port only
|
// XDSPort is the port the xDS gRPC server listens on. This port only
|
||||||
// exposes the xDS and ext_authz APIs for Envoy and it is disabled by default.
|
// exposes the xDS and ext_authz APIs for Envoy and it is disabled by default.
|
||||||
//
|
//
|
||||||
// hcl: ports { grpc = int }
|
// hcl: ports { xds = int }
|
||||||
// flags: -grpc-port int
|
// flags: -xds-port int
|
||||||
XDSPort int
|
XDSPort int
|
||||||
|
|
||||||
// XDSAddrs contains the list of TCP addresses and UNIX sockets the xDS gRPC
|
// XDSAddrs contains the list of TCP addresses and UNIX sockets the xDS gRPC
|
||||||
|
@ -734,7 +734,7 @@ type RuntimeConfig struct {
|
||||||
// If 'addresses.xds' was not provided the 'client_addr' addresses are
|
// If 'addresses.xds' was not provided the 'client_addr' addresses are
|
||||||
// used.
|
// used.
|
||||||
//
|
//
|
||||||
// hcl: client_addr = string addresses { grpc = string } ports { grpc = int }
|
// hcl: client_addr = string addresses { xds = string } ports { xds = int }
|
||||||
XDSAddrs []net.Addr
|
XDSAddrs []net.Addr
|
||||||
|
|
||||||
// HTTPAddrs contains the list of TCP addresses and UNIX sockets the HTTP
|
// HTTPAddrs contains the list of TCP addresses and UNIX sockets the HTTP
|
||||||
|
|
|
@ -200,7 +200,7 @@ func (c *cmd) run(args []string) int {
|
||||||
}
|
}
|
||||||
ui.Info(fmt.Sprintf(" Datacenter: '%s' (Segment: '%s')", config.Datacenter, segment))
|
ui.Info(fmt.Sprintf(" Datacenter: '%s' (Segment: '%s')", config.Datacenter, segment))
|
||||||
ui.Info(fmt.Sprintf(" Server: %v (Bootstrap: %v)", config.ServerMode, config.Bootstrap))
|
ui.Info(fmt.Sprintf(" Server: %v (Bootstrap: %v)", config.ServerMode, config.Bootstrap))
|
||||||
ui.Info(fmt.Sprintf(" Client Addr: %v (HTTP: %d, HTTPS: %d, gRPC: %d, DNS: %d)", config.ClientAddrs,
|
ui.Info(fmt.Sprintf(" Client Addr: %v (HTTP: %d, HTTPS: %d, xDS: %d, DNS: %d)", config.ClientAddrs,
|
||||||
config.HTTPPort, config.HTTPSPort, config.XDSPort, config.DNSPort))
|
config.HTTPPort, config.HTTPSPort, config.XDSPort, config.DNSPort))
|
||||||
ui.Info(fmt.Sprintf(" Cluster Addr: %v (LAN: %d, WAN: %d)", config.AdvertiseAddrLAN,
|
ui.Info(fmt.Sprintf(" Cluster Addr: %v (LAN: %d, WAN: %d)", config.AdvertiseAddrLAN,
|
||||||
config.SerfPortLAN, config.SerfPortWAN))
|
config.SerfPortLAN, config.SerfPortWAN))
|
||||||
|
|
Loading…
Reference in New Issue