Merge pull request #4371 from hashicorp/bugfix/gh-4358

Remove https://prefix from TLSConfig.Address
This commit is contained in:
Matt Keeler 2018-07-11 08:50:10 -04:00 committed by GitHub
commit bda7cb1448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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