mirror of
https://github.com/status-im/consul.git
synced 2025-02-17 16:16:44 +00:00
Merge pull request #4371 from hashicorp/bugfix/gh-4358
Remove https://prefix from TLSConfig.Address
This commit is contained in:
commit
4d1ead10b3
@ -742,7 +742,8 @@ func (a *Agent) reloadWatches(cfg *config.RuntimeConfig) error {
|
|||||||
if a.config.CAFile != "" {
|
if a.config.CAFile != "" {
|
||||||
config.TLSConfig.CAFile = 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 {
|
if err := wp.RunWithConfig(addr, config); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user