2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-13 07:14:37 +00:00

Remove https://prefix from TLSConfig.Address

This commit is contained in:
Matt Keeler 2018-07-09 12:31:15 -04:00
parent f92e5b1121
commit 962f6a1816

@ -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 {