diff --git a/command/agent/consul/syncer.go b/command/agent/consul/syncer.go index 76bcfcd8d..644715512 100644 --- a/command/agent/consul/syncer.go +++ b/command/agent/consul/syncer.go @@ -158,7 +158,7 @@ func NewSyncer(consulConfig *config.ConsulConfig, shutdownCh chan struct{}, logg cfg := consul.DefaultConfig() - // If a nil config was provided, fall back to the default config + // If a nil consulConfig was provided, fall back to the default config if consulConfig == nil { consulConfig = cconfig.DefaultConfig().ConsulConfig }