diff --git a/command/agent/config.go b/command/agent/config.go index e9b1cdfe8..95f26b21a 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -663,8 +663,8 @@ func (c *Config) Merge(b *Config) *Config { return &result } -// normalize Addresses and AdvertiseAddrs to always be initialized and have -// sane defaults. +// normalizeAddrs normalizes Addresses and AdvertiseAddrs to always be +// initialized and have sane defaults. func (c *Config) normalizeAddrs() error { c.Addresses.HTTP = normalizeBind(c.Addresses.HTTP, c.BindAddr) c.Addresses.RPC = normalizeBind(c.Addresses.RPC, c.BindAddr)