diff --git a/consul.go b/consul.go index 3bf4db9..a54d39b 100644 --- a/consul.go +++ b/consul.go @@ -72,7 +72,7 @@ func (c *consulConfig) Init(opts ...config.Option) error { } cli, err := api.NewClient(cfg) - if err != nil { + if err != nil && !c.opts.AllowFail { return err }