diff --git a/consul.go b/consul.go index 6b0e7cf..96fe0e3 100644 --- a/consul.go +++ b/consul.go @@ -59,6 +59,11 @@ func (c *consulConfig) Init(opts ...config.Option) error { if v, ok := c.opts.Context.Value(pathKey{}).(string); ok { path = v } + /* + if v, ok := c.opts.Context.Value(tlsConfigKey{}).(*tls.Config); ok { + cfg.TLSConfig = *v + } + */ } cli, err := api.NewClient(cfg) diff --git a/options.go b/options.go index 4bf8ff6..267731a 100644 --- a/options.go +++ b/options.go @@ -28,3 +28,11 @@ type pathKey struct{} func Path(path string) config.Option { return config.SetOption(pathKey{}, path) } + +/* +type tlsConfigKey struct{} + +func TLSConfig(t *tls.Config) config.Option { + return config.SetOption(tlsConfigKey{}, t) +} +*/