From 115893b7d8f6f99b7c7927cc1ad8b706155bed31 Mon Sep 17 00:00:00 2001 From: Matt Keeler Date: Mon, 9 Jul 2018 12:31:15 -0400 Subject: [PATCH] Remove https://prefix from TLSConfig.Address --- agent/agent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/agent.go b/agent/agent.go index e56f3e29f..c0d840947 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -742,7 +742,8 @@ func (a *Agent) reloadWatches(cfg *config.RuntimeConfig) error { if a.config.CAFile != "" { config.TLSConfig.CAFile = a.config.CAFile } - config.TLSConfig.Address = addr + // use the original address without the https:// prefix + config.TLSConfig.Address = netaddr.String() } if err := wp.RunWithConfig(addr, config); err != nil {